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.3.0

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.3.0
File Size Uploaded Provenance Actions
tinysolve-0.3.0.tar.gz 9.1 kB Without provenance Details for tinysolve-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 18.4 kB

Release files / tinysolve-0.3.0.tar.gz

Download URL tinysolve-0.3.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
52a56c6c1315b95eed97abdc100c37d0686d981d9d689f180b0ae01972d71974
BLAKE2b-256 checksum
How to use checksums
3fd6c65207e9a55bf398679c673df2673d999b3fb78d341a378915177c57582c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.0-py3-none-any.whl

Download URL tinysolve-0.3.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7432c3ba46e1dca90c14caf9ee1eec3f0f5a2c084a9879b8ea95fc51147ec13
BLAKE2b-256 checksum
How to use checksums
c2d0262dec5a5da7cc9d373ad9f1860aaab7b4b75f818de70abaacbd42c46da5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.0

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