Skip to main content

tinysolve

torch.linalg.solve for tinygrad: solve A @ x = B for x.

from tinygrad import Tensor
from tinysolve import solve

A = Tensor.randn(2000, 16, 16) + 16 * Tensor.eye(16)
B = Tensor.randn(2000, 16, 4)

x = solve(A, B)  # (2000, 16, 4)

# differentiable (higher-order too)
gA, gB = solve(A, B).sum().gradient(A, B)

Install

uv add tinysolve  # or: pip install tinysolve

Development

uv run pytest                     # tests
uv run pytest tests/benchmark.py  # benchmarks
uv run ruff check . && uv run ty check

License

MIT

Metadata

Release files for tinysolve 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinysolve 0.2.2
File Size Uploaded Provenance Actions
tinysolve-0.2.2.tar.gz 6.8 kB Without provenance Details for tinysolve-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinysolve 0.2.2
File Interpreter ABI Platform Actions
tinysolve-0.2.2-py3-none-any.whl Python 3 none any Details for tinysolve-0.2.2-py3-none-any.whl

Total release size: 13.8 kB

Release files / tinysolve-0.2.2.tar.gz

Download URL tinysolve-0.2.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
069be2fcc2f3d29a307d2ed5884b3df645c201aaa02d5938bf9ded42920493ad
BLAKE2b-256 checksum
How to use checksums
302fd795baffc93379ddf1f30c0ce6fb3c120e1433ec5b8f6a0a8a5ce781f6c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tinysolve-0.2.2-py3-none-any.whl

Download URL tinysolve-0.2.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10beb1274c939c1e492e28902a87d04032afaa2a842ab4e1e3bcf1f0fb74d5ff
BLAKE2b-256 checksum
How to use checksums
14deb68ae5c2c1569a2680fbdb3053ed228a73ca3bb93fef8659a349854a600f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tinysolve 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page