1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use Dimensions;
/// Represents a matrix.
/// Represents a vector.
/// Statically sized matrix.
///
/// SMatrix is used almost just like Matrix, but its size is known at compile-time,
/// so operations can be done without the `&` operator. The size of this matrix cannot be changed.
///
/// # Example
///
/// ```
/// # use libmat::mat::SMatrix;
/// # use num_traits::identities::One;
/// # use libmat::smatrix;
/// let mut mat_a: SMatrix<i32, 3, 3> = SMatrix::one();
/// mat_a = mat_a * 2;
/// mat_a[1] = [1,2,3];
/// assert_eq!(mat_a, smatrix!{{2,0,0},{1,2,3},{0,0,2}});
/// ```
pub type SColVector<T, const N: usize> = ;
pub type SRowVector<T, const N: usize> = ;