[][src]Struct neuralnetwork::matrix::Matrix

pub struct Matrix {
    pub rows: usize,
    pub cols: usize,
    // some fields omitted
}

Fields

rows: usizecols: usize

Implementations

impl Matrix[src]

pub fn new(rows: usize, cols: usize) -> Matrix[src]

pub fn new_random(rows: usize, cols: usize, rng: &mut Xorshift32) -> Matrix[src]

pub fn mul_components(first: &Matrix, second: &Matrix) -> Matrix[src]

pub fn transpose(&self) -> Matrix[src]

pub fn apply_function(&self, f: fn(_: f32) -> f32) -> Matrix[src]

pub fn index_of_max(&self) -> usize[src]

Trait Implementations

impl Add<&'_ Matrix> for &Matrix[src]

type Output = Matrix

The resulting type after applying the + operator.

impl AddAssign<Matrix> for Matrix[src]

impl Display for Matrix[src]

impl Index<usize> for Matrix[src]

type Output = [f32]

The returned type after indexing.

impl IndexMut<usize> for Matrix[src]

impl Mul<&'_ Matrix> for &Matrix[src]

type Output = Matrix

The resulting type after applying the * operator.

impl Mul<f32> for Matrix[src]

type Output = Matrix

The resulting type after applying the * operator.

impl Sub<&'_ Matrix> for &Matrix[src]

type Output = Matrix

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.