7 releases (breaking)

0.6.0 May 4, 2022
0.5.0 May 10, 2021
0.4.0 Mar 28, 2021
0.3.0 Feb 16, 2021
0.1.1 Jun 23, 2020

#474 in Math

Download history 129/week @ 2023-06-09 130/week @ 2023-06-16 29/week @ 2023-06-23 91/week @ 2023-06-30 20/week @ 2023-07-07 10/week @ 2023-07-14 27/week @ 2023-07-21 41/week @ 2023-07-28 21/week @ 2023-08-04 63/week @ 2023-08-11 60/week @ 2023-08-18 121/week @ 2023-08-25 96/week @ 2023-09-01 81/week @ 2023-09-08 66/week @ 2023-09-15 77/week @ 2023-09-22

325 downloads per month
Used in petal-decomposition



Lair: Linear Algebra in Rust

Lair implements linear algebra routines in pure Rust. It uses ndarray as its matrix representation.

crates.io Documentation Coverage Status


Lair is still in an early stage, and provides only a limited set of functions, including the followings:

  • LU and QR decompositions
  • An equation solver for a system of linear scalar equations
  • Matrix builders for special matrices such as circulant and companion matrices

Minimum Supported Rust Version

This crate is guaranteed to compile on Rust 1.51 and later.


Copyright 2020-2022 Vine Systems

Licensed under Apache License, Version 2.0 (the "License"); you may not use this crate except in compliance with the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See LICENSE for the specific language governing permissions and limitations under the License.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.


~47K SLoC