generic_array_storage

Trait GenericMatrixFromExt

Source
pub trait GenericMatrixFromExt<R: Conv, C: Conv> {
    type T;

    // Required method
    fn into_generic_matrix(self) -> GenericMatrix<Self::T, R, C>;
}
Expand description

GenericMatrix-conversion trait intended for core arrays and regular nalgebra matrices

Required Associated Types§

Source

type T

Type of the elements.

This an associated type for the simple reason that is can be such.

Required Methods§

Source

fn into_generic_matrix(self) -> GenericMatrix<Self::T, R, C>

Creates GenericMatrix from core Rust array.

Implementations on Foreign Types§

Source§

impl<T, R, C> GenericMatrixFromExt<R, C> for OMatrix<T, R::Nalg, C::Nalg>
where T: Scalar, R: Conv, C: Conv, DefaultAllocator: Allocator<R::Nalg, C::Nalg>,

Source§

type T = T

Source§

fn into_generic_matrix(self) -> GenericMatrix<Self::T, R, C>

Source§

impl<T, const AR: usize, const AC: usize, R, C> GenericMatrixFromExt<R, C> for [[T; AR]; AC]
where Const<N>: IntoArrayLength, R: Conv<TNum = <Const<N> as IntoArrayLength>::ArrayLength>, C: Conv<TNum = <Const<N> as IntoArrayLength>::ArrayLength>,

Source§

type T = T

Source§

fn into_generic_matrix(self) -> GenericMatrix<Self::T, R, C>

Implementors§