Struct matrust::Matrix
[−]
[src]
pub struct Matrix { /* fields omitted */ }
pub struct Matrix { /* fields omitted */ }
impl Matrix
[src]fn new(m: usize, n: usize, value: f64) -> Matrix
fn rand(m: usize, n: usize) -> Matrix
fn apply_fn<F>(&self, f: F) -> Matrix where F: Fn(f64) -> f64
fn scale(&self, scalar: f64) -> Matrix
fn mult_vec(&self, v: &Vec<f64>) -> Result<Vec<f64>, &str>
fn transpose(&self) -> Matrix
fn index(&self, m: usize, n: usize) -> Result<f64, &str>
fn dimensions(&self) -> (usize, usize)
fn mult_apply_fn<F>(&self, other: &Matrix, f: F) -> Result<Matrix, &str> where F: Fn(f64, f64) -> f64
fn add(&self, other: &Matrix) -> Result<Matrix, &str>
fn subtract(&self, other: &Matrix) -> Result<Matrix, &str>
fn push(&mut self, m: usize, n: usize, val: f64) -> Result<(), &str>
impl Debug for Matrix
[src]impl PartialEq for Matrix
[src]