1- <!-- Generated by cargo-onedoc. DO NOT EDIT. -->
1+ <!-- Generated by cargo-onedoc v0.2.2 . DO NOT EDIT. -->
22
33# vectrix
44
55[ ![ Crates.io Version] ( https://badgers.space/crates/version/vectrix )] ( https://crates.io/crates/vectrix )
66[ ![ Docs.rs Latest] ( https://badgers.space/badge/docs.rs/latest/blue )] ( https://docs.rs/vectrix )
77[ ![ Build Status] ( https://badgers.space/github/checks/rossmacarthur/vectrix?label=build )] ( https://github.com/rossmacarthur/vectrix/actions/workflows/build.yaml )
88
9- This crate provides a stack-allocated, constant-size [ ` Matrix<T, M, N> ` ] [ matrix ]
9+ This crate provides a stack-allocated, constant-size [ ` Matrix<T, M, N> ` ] [ Matrix ]
1010type implemented using const generics.
1111
1212## 🚀 Getting started
@@ -27,21 +27,21 @@ cargo add vectrix --no-default-features --features=macro
2727
2828### Types
2929
30- The base [ ` Matrix<T, M, N> ` ] [ matrix ] type represents a matrix with ` M ` rows and ` N `
30+ The base [ ` Matrix<T, M, N> ` ] [ Matrix ] type represents a matrix with ` M ` rows and ` N `
3131columns. This type is a backed by an array of arrays. The data is stored in
3232column-major order. Some convenient aliases are provided for common
3333matrices, like vectors.
3434
35- - [ ` Matrix<T, M, N> ` ] [ matrix ] → a generic matrix type with ` M ` rows and ` N ` columns.
36- - [ ` Vector<T, M> ` ] [ vector ] → a column vector with ` M ` rows.
37- - [ ` RowVector<T, N> ` ] [ rowvector ] → a row vector with ` N ` columns.
35+ - [ ` Matrix<T, M, N> ` ] [ Matrix ] → a generic matrix type with ` M ` rows and ` N ` columns.
36+ - [ ` Vector<T, M> ` ] [ Vector ] → a column vector with ` M ` rows.
37+ - [ ` RowVector<T, N> ` ] [ RowVector ] → a row vector with ` N ` columns.
3838
3939### Macros
4040
4141Macros are provided for easy construction of the provided types. These
4242macros will also work in ` const ` contexts.
4343
44- - The [ ` matrix! ` ] [ matrix-1 ] macro can be used to construct a new [ ` Matrix ` ] [ matrix ] of any
44+ - The [ ` matrix! ` ] [ matrix ] macro can be used to construct a new [ ` Matrix ` ] [ Matrix ] of any
4545 size.
4646
4747 ``` rust
@@ -54,7 +54,7 @@ macros will also work in `const` contexts.
5454 In the above example ` matrix ` is a ` Matrix<_, 2, 3> ` type, having 2 rows and
5555 3 columns.
5656
57- - The [ ` vector! ` ] [ vector-1 ] and [ ` row_vector! ` ] [ row_vector ] macros can be used to to construct
57+ - The [ ` vector! ` ] [ vector ] and [ ` row_vector! ` ] [ row_vector ] macros can be used to to construct
5858 column and row vectors respectively.
5959
6060 ``` rust
@@ -71,16 +71,16 @@ macros will also work in `const` contexts.
7171
7272Commonly used constructors are listed below.
7373
74- - [ ` ::zero() ` ] [ zero ] → constructs a new matrix filled with
75- [ ` T::zero() ` ] [ tzero ] .
76- - [ ` ::identity() ` ] [ identity ] → constructs a new identity matrix.
77- - [ ` ::repeat(..) ` ] [ repeat ] → constructs a new matrix filled with
74+ - [ ` ::zero() ` ] [ :: zero] → constructs a new matrix filled with
75+ [ ` T::zero() ` ] [ T::zero ] .
76+ - [ ` ::identity() ` ] [ :: identity] → constructs a new identity matrix.
77+ - [ ` ::repeat(..) ` ] [ :: repeat] → constructs a new matrix filled with
7878 the provided value.
79- - [ ` ::repeat_with(..) ` ] [ repeat_with ] → constructs a new matrix
79+ - [ ` ::repeat_with(..) ` ] [ :: repeat_with] → constructs a new matrix
8080 filled with values computed by the provided closure.
81- - [ ` ::from_iter(..) ` ] [ from_iter ] → constructs a
81+ - [ ` ::from_iter(..) ` ] [ :: from_iter] → constructs a
8282 new matrix from an iterator.
83- - [ ` ::new(..) ` ] [ new ] → constructs a new vector using the
83+ - [ ` ::new(..) ` ] [ :: new] → constructs a new vector using the
8484 provided components.
8585
8686### Accessing elements
@@ -180,7 +180,7 @@ assert_eq!(m.as_slice(), &[1, 2, 3, 4, 5, 6]);
180180
181181### Debug
182182
183- The [ ` Debug ` ] [ debug ] implementation will print out vectors as
183+ The [ ` Debug ` ] [ Debug ] implementation will print out vectors as
184184lists and matrices as a list of lists in column-major order.
185185
186186``` rust
@@ -199,10 +199,10 @@ matrix: [[1, 3], [2, 4]]
199199
200200### Display
201201
202- The [ ` Display ` ] [ display ] implementation will print out the
202+ The [ ` Display ` ] [ Display ] implementation will print out the
203203matrix in the traditional box bracket format. Precision is supported as well
204204as most of the other formatting traits like
205- [ ` LowerHex ` ] [ lowerhex ] .
205+ [ ` LowerHex ` ] [ LowerHex ] .
206206
207207``` rust
208208let cv = vector! [1.1 , 2.0 ];
@@ -236,7 +236,7 @@ matrix:
236236
237237### Operations
238238
239- [ ` Matrix ` ] [ matrix ] implements many built-in operators. With scalar operands almost
239+ [ ` Matrix ` ] [ Matrix ] implements many built-in operators. With scalar operands almost
240240all operators are implemented and they simply apply the operation to each
241241element in the matrix. Unary operators will do the equivalent. In the
242242following example each element in the matrix is multiplied by 2.
@@ -253,7 +253,7 @@ let exp = matrix![
253253assert_eq! (m * 2 , exp );
254254```
255255
256- [ ` Matrix ` ] [ matrix ] supports addition and subtraction with same size matrices for
256+ [ ` Matrix ` ] [ Matrix ] supports addition and subtraction with same size matrices for
257257element-wise addition and subtraction. In the following example a matrix
258258is added to itself.
259259
@@ -276,30 +276,30 @@ This project is distributed under the terms of both the MIT license and the Apac
276276See [ LICENSE-APACHE] ( LICENSE-APACHE ) and [ LICENSE-MIT] ( LICENSE-MIT ) for details.
277277
278278
279+ [ ::from_iter ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.from_iter
280+ [ ::identity ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.identity
281+ [ ::new ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.new
282+ [ ::repeat ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.repeat
283+ [ ::repeat_with ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.repeat_with
284+ [ ::zero ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.zero
285+ [ Debug ] : https://doc.rust-lang.org/stable/std/fmt/trait.Debug.html
286+ [ Display ] : https://doc.rust-lang.org/stable/std/fmt/trait.Display.html
287+ [ LowerHex ] : https://doc.rust-lang.org/stable/std/fmt/trait.LowerHex.html
288+ [ Matrix ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html
289+ [ RowVector ] : https://docs.rs/vectrix/latest/vectrix/type.RowVector.html
290+ [ T::zero ] : https://docs.rs/vectrix/latest/vectrix/trait.Zero.html#tymethod.zero
291+ [ Vector ] : https://docs.rs/vectrix/latest/vectrix/type.Vector.html
279292[ as_mut_slice ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.as_mut_slice
280293[ as_slice ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.as_slice
281294[ column ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.column
282- [ debug ] : https://doc.rust-lang.org/stable/std/fmt/trait.Debug.html
283- [ display ] : https://doc.rust-lang.org/stable/std/fmt/trait.Display.html
284- [ from_iter ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.from_iter
285- [ identity ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.identity
286295[ into_iter ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.into_iter
287296[ iter ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.iter
288297[ iter_columns ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.iter_columns
289298[ iter_columns_mut ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.iter_columns_mut
290299[ iter_mut ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.iter_mut
291300[ iter_rows ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.iter_rows
292301[ iter_rows_mut ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.iter_rows_mut
293- [ lowerhex ] : https://doc.rust-lang.org/stable/std/fmt/trait.LowerHex.html
294- [ matrix ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html
295- [ matrix-1 ] : https://docs.rs/vectrix/latest/vectrix/macro.matrix.html
296- [ new ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.new
297- [ repeat ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.repeat
298- [ repeat_with ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.repeat_with
302+ [ matrix ] : https://docs.rs/vectrix/latest/vectrix/macro.matrix.html
299303[ row ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.row
300304[ row_vector ] : https://docs.rs/vectrix/latest/vectrix/macro.row_vector.html
301- [ rowvector ] : https://docs.rs/vectrix/latest/vectrix/type.RowVector.html
302- [ tzero ] : https://docs.rs/vectrix/latest/vectrix/trait.Zero.html#tymethod.zero
303- [ vector ] : https://docs.rs/vectrix/latest/vectrix/type.Vector.html
304- [ vector-1 ] : https://docs.rs/vectrix/latest/vectrix/macro.vector.html
305- [ zero ] : https://docs.rs/vectrix/latest/vectrix/struct.Matrix.html#method.zero
305+ [ vector ] : https://docs.rs/vectrix/latest/vectrix/macro.vector.html
0 commit comments