|
|
@ -11,8 +11,7 @@ use std::ops::{Add, AddAssign, Deref, DerefMut, Index, IndexMut, Mul, MulAssign,
|
|
|
|
|
|
|
|
|
|
|
|
/// A 2D array of values which can be operated upon.
|
|
|
|
/// A 2D array of values which can be operated upon.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// Matrices have a fixed size known at compile time, and must be made up of types that implement
|
|
|
|
/// Matrices have a fixed size known at compile time
|
|
|
|
/// the [Scalar] trait.
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
|
|
|
pub struct Matrix<T, const M: usize, const N: usize>
|
|
|
|
pub struct Matrix<T, const M: usize, const N: usize>
|
|
|
|
where
|
|
|
|
where
|
|
|
|