Trait DynamicMatrixOps

Source
pub trait DynamicMatrixOps<T> {
    // Required methods
    fn from_dmatrix(matrix: &DMatrix<T>) -> Self;
    fn to_dmatrix(&self) -> DMatrix<T>;
    fn into_dmatrix(self) -> DMatrix<T>;
}
Expand description

Trait for conversion to and from nalgebra matrices

Required Methods§

Source

fn from_dmatrix(matrix: &DMatrix<T>) -> Self

Source

fn to_dmatrix(&self) -> DMatrix<T>

Source

fn into_dmatrix(self) -> DMatrix<T>

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 DynamicMatrixOps<f32> for DynamicTensorFloat2D

DynamicMatrixOps for DynamicTensorFloat2D

Source§

impl DynamicMatrixOps<u32> for DynamicTensorInt2D

DynamicMatrixOps for DynamicTensorInt2D