Trait scirust::matrix::traits::Conversion [] [src]

pub trait Conversion<T: MagmaBase>: Shape<T> {
    fn to_std_vec(&self) -> Vec<T>;

    fn to_scalar(&self) -> T { ... }
}

Matrix conversion API

Required Methods

fn to_std_vec(&self) -> Vec<T>

Converts the matrix to vector from standard library

Provided Methods

fn to_scalar(&self) -> T

Converts the matrix to a scalar

Implementors