Full

Trait Full 

Source
pub trait Full {
    // Required method
    fn full(value: f64) -> Self;
}
Expand description

Initialize matrices with identical elements.

Required Methods§

Source

fn full(value: f64) -> Self

Construct a matrix the same value in every element.

§Examples
use hoomd_linear_algebra::{Full, matrix::Matrix22};
let m = Matrix22::full(5.0);
assert_eq!(m.rows, [[5.0, 5.0], [5.0, 5.0]]);

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.

Implementors§

Source§

impl<const N: usize, const M: usize> Full for Matrix<N, M>