[−][src]Struct neuralnetwork::matrix::Matrix
Fields
rows: usize
cols: 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.
pub fn add(self, other: &Matrix) -> Matrix
[src]
impl AddAssign<Matrix> for Matrix
[src]
pub fn add_assign(&mut self, other: Matrix)
[src]
impl Display for Matrix
[src]
impl Index<usize> for Matrix
[src]
type Output = [f32]
The returned type after indexing.
pub fn index(&self, row: usize) -> &Self::Output
[src]
impl IndexMut<usize> for Matrix
[src]
impl Mul<&'_ Matrix> for &Matrix
[src]
type Output = Matrix
The resulting type after applying the *
operator.
pub fn mul(self, other: &Matrix) -> Matrix
[src]
impl Mul<f32> for Matrix
[src]
type Output = Matrix
The resulting type after applying the *
operator.
pub fn mul(self, other: f32) -> Matrix
[src]
impl Sub<&'_ Matrix> for &Matrix
[src]
Auto Trait Implementations
impl RefUnwindSafe for Matrix
[src]
impl Send for Matrix
[src]
impl Sync for Matrix
[src]
impl Unpin for Matrix
[src]
impl UnwindSafe for Matrix
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,