5 releases (breaking)
|0.5.0||Jan 16, 2023|
|0.4.0||May 2, 2022|
|0.3.0||Jan 2, 2022|
|0.2.0||Aug 10, 2021|
|0.1.0||Aug 5, 2021|
#212 in Math
1,262 downloads per month
Used in 2 crates
lstsq for the Rust language
Return the least-squares solution to a linear matrix equation
The crate implements the linear least squares solution to a linear matrix equation.
- Linear algebra and types from the
- Maximum compatibility with the
numpy.linalg.lstsqPython library function.
- No standard library is required (disable the default features to disable
std) and no heap allocations. In other words, this can run on a bare-metal microcontroller with no OS.
To run the unit tests:
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
The following will fail if a std dependency is present:
cargo build --no-default-features --target thumbv7em-none-eabihf