Skip to main content

LazyMatrix for Python

Center and scale NumPy arrays and SciPy CSR/CSC matrices without constructing a normalized matrix. LazyMatrix owns a copy of the raw input and applies fitted column normalization during products.

import numpy as np
from lazymatrix import standardize

X = np.array([[1.0, 0.0], [2.0, 3.0], [0.0, 4.0]])
Z = standardize(X)
prediction = Z @ np.array([1.0, -1.0])
gradient = Z.T @ prediction
column = Z[:, 0]

Install with pip install lazymatrix. Python 3.11 or newer is required. See the Python guide and API reference.

Z.aslinearoperator() integrates with SciPy's iterative solvers. Z.toarray() explicitly creates a normalized dense array. Other NumPy operations and implicit dense conversion are unsupported in this first release.

Dense inputs require a full raw-data copy. Sparse inputs remain sparse and are copied into canonical CSC storage. Products accept dense vectors and matrices; multiple right-hand sides currently use repeated vector products. All stored values and results use float64. Normalization uses population standard deviations and replaces exact zero scales with one.

From the repository root, use task python:check to build and test the package. Python and Rust have independent versions and share one release PR.

PyPI trusted publishing must name jolars/lazymatrix, publish-python.yml, and the release environment. The existing Versionary release token must retain permission to create tags that trigger publishing workflows.

Metadata

Release files for lazymatrix 0.1.1

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

Source distribution (sdist)

Source distribution for lazymatrix 0.1.1
File Size Uploaded Provenance
lazymatrix-0.1.1.tar.gz 5.8 MB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for lazymatrix 0.1.1
File
lazymatrix-0.1.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
lazymatrix-0.1.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details
lazymatrix-0.1.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
lazymatrix-0.1.1-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details

Total release size: 7.0 MB

Release files / lazymatrix-0.1.1.tar.gz

Download URL lazymatrix-0.1.1.tar.gz
Size 5.8 MB
Tags Source
SHA-256 checksum
How to use checksums
2125d403f73c2ce0cca071952b4f9dd66afee3defeaa958d346b20da638ea5f9
BLAKE2b-256 checksum
How to use checksums
ba70bc2a191b906701eef4a7ed43653ae5d15ad832b0c408a7f054f03f38b098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / lazymatrix-0.1.1-cp311-abi3-win_amd64.whl

Download URL lazymatrix-0.1.1-cp311-abi3-win_amd64.whl
Size 222.2 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cceebd7f24bcd8a857a1b6d7d252007307849530874c256e1c0a2c9f56ccbd48
BLAKE2b-256 checksum
How to use checksums
cddc45d61160852df4d443c940810d10315a587d1d736e1425808e754da6423c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / lazymatrix-0.1.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lazymatrix-0.1.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 325.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
63ac762630b47dff78feedfe310ce53b5e28981349662bfddd0c19c9dfa59314
BLAKE2b-256 checksum
How to use checksums
45015987a262823c54bb75fc5045561ee368cb190bfc744a80712a16c3738a89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / lazymatrix-0.1.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL lazymatrix-0.1.1-cp311-abi3-macosx_11_0_arm64.whl
Size 289.2 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2858ba4e1e2feebd1abbccc558abbf56d1f6ed4de22346cfeb6a0d1d122da10b
BLAKE2b-256 checksum
How to use checksums
067d5fe3083a2fb92ae02916cfbfd6ee4216f66dcba4da7d07ae8361300ed7ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / lazymatrix-0.1.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL lazymatrix-0.1.1-cp311-abi3-macosx_10_12_x86_64.whl
Size 300.9 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8e85dfdf0a3c61c6b1e991d2390c396ad2b1cbf96713878930eefbee655fa374
BLAKE2b-256 checksum
How to use checksums
e71be25e06de41dbe52fdce8f1580d6c134a2df767db8d7a425350addeab3355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for lazymatrix 0.1.1

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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for lazymatrix-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

5 release files Full provenance

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