pub trait TMatrix<F: Float + Debug> {
Show 20 methods
// Required methods
fn col_major(m: &Vec<Vec<F>>) -> Self;
fn row_major(m: &Vec<Vec<F>>) -> Self;
fn new(m: &Vec<Vec<F>>) -> Self;
fn identity() -> Self;
fn prec_eq(&self, e: F, m: &impl TMatrix<F>) -> bool;
fn dot_m(&self, m: &impl TMatrix<F>) -> Self;
fn to_vec(&self) -> Vec<Vec<F>>;
// Provided methods
fn colmajor3(_m: Vec<Vector3<F>>) -> Self
where Self: Sized { ... }
fn rowmajor3(_m: Vec<Vector3<F>>) -> Self
where Self: Sized { ... }
fn colmajor4(_m: Vec<Vector4<F>>) -> Self
where Self: Sized { ... }
fn rowmajor4(_m: Vec<Vector4<F>>) -> Self
where Self: Sized { ... }
fn mev3(&self) -> &[Vector3<F>] ⓘ { ... }
fn mev4(&self) -> &[Vector4<F>] ⓘ { ... }
fn rowv3(&self, _j: usize) -> Vector3<F> { ... }
fn colv3(&self, _i: usize) -> Vector3<F> { ... }
fn rowv4(&self, _j: usize) -> Vector4<F> { ... }
fn colv4(&self, _i: usize) -> Vector4<F> { ... }
fn transpose(&self) -> Self
where Self: Sized { ... }
fn det(&self) -> F { ... }
fn inv(&self, p: F) -> Option<Self>
where Self: Sized { ... }
}Expand description
TMatrix
Required Methods§
Provided Methods§
Sourcefn colmajor3(_m: Vec<Vector3<F>>) -> Selfwhere
Self: Sized,
fn colmajor3(_m: Vec<Vector3<F>>) -> Selfwhere
Self: Sized,
constructor col major from v3 (move)
Sourcefn rowmajor3(_m: Vec<Vector3<F>>) -> Selfwhere
Self: Sized,
fn rowmajor3(_m: Vec<Vector3<F>>) -> Selfwhere
Self: Sized,
constructor row major from v3 (move)
Sourcefn colmajor4(_m: Vec<Vector4<F>>) -> Selfwhere
Self: Sized,
fn colmajor4(_m: Vec<Vector4<F>>) -> Selfwhere
Self: Sized,
constructor col major from v4 (move)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.