| Crates.io | lstsq |
| lib.rs | lstsq |
| version | 0.7.0 |
| created_at | 2021-08-05 20:11:40.248126+00 |
| updated_at | 2025-08-01 05:41:16.898625+00 |
| description | Return the least-squares solution to a linear matrix equation |
| homepage | |
| repository | https://github.com/strawlab/lstsq |
| max_upload_size | |
| id | 432169 |
| size | 31,746 |
lstsq for the Rust languageReturn the least-squares solution to a linear matrix equation
The crate implements the linear least squares solution to a linear matrix equation.
Characteristics:
nalgebra
crate.numpy.linalg.lstsq
Python library function.std) and no heap allocations. In other words, this can run on a
bare-metal microcontroller with no OS.To run the unit tests:
cargo test
no_stdSince the thumbv7em-none-eabihf target does not have std available, we
can build for it to check that our crate does not inadvertently pull in
std. The unit tests require std, so cannot be run on a no_std platform.
The following will fail if a std dependency is present:
# install target with: "rustup target add thumbv7em-none-eabihf"
cargo build --no-default-features --target thumbv7em-none-eabihf