{"repo":"rossmacarthur/vectrix","free":true,"listed":false,"github":"https://github.com/rossmacarthur/vectrix","clone":"git clone https://github.com/rossmacarthur/vectrix.git","description":"🏹 Stack-allocated, constant-size, matrix type implemented with const generics","language":"Rust","stars":20,"topics":["rust","crate","const-generics","vector","matrix"],"license":"Apache-2.0","category":"chat-messaging","readme_excerpt":"vectrix This crate provides a stack-allocated, constant-size [ Matrix ][Matrix] type implemented using const generics. [Matrix]: https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html 🚀 Getting started Add this crate to your Cargo manifest. no std is also supported by disabling the default std feature. 🦀 MSRV This crate supports Rust 1.83 and above. 🤸 Usage Types The base [ Matrix ][Matrix] type represents a matrix with M rows and N columns. This type is a backed by an array of arrays. The data is stored in column-major order. Some convenient aliases are provided for common matrices, like vectors. - [ Matrix ][Matrix] → a generic matrix type with M rows and N columns. - [ Vector ][Vector] → a column vector with M rows. - [ RowVector ][RowVector] → a row vector with N columns. Macros Macros are provided for easy construction of the provided types. These macros will also work in const contexts. - The [ matrix! ][matrix] macro can be used to construct a new [ Matrix ][Matrix] of any size. In the above example matrix is a Matrix type, having 2 rows and 3 columns. - The [ vector! ][vector] and [ row vector! ][row vector] macros can be used to to construct column and row vectors respectively. Constructors Commonly used constructors are listed below. - [ ::zero() ][::zero] → constructs a new matrix filled with [ T::zero() ][T::zero]. - [ ::identity() ][::identity] → constructs a new identity matrix. - [ ::repeat(..) ][::repeat] → constructs a new matrix filled with the provide","default_branch":null,"files":null,"tree":[],"storefront":"/r/rossmacarthur","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rossmacarthur/vectrix/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}