Struct generic_matrix::Matrix [] [src]

pub struct Matrix<T> { /* fields omitted */ }

2D matrix.

Methods

impl<T> Matrix<T>
[src]

[src]

Creates a new Matrix.

[src]

Creates a new Matrix from vector.

[src]

Returns the matrix's row and column.

[src]

Returns the matrix's row.

[src]

Returns the matrix's column.

impl<T: Zero> Matrix<T>
[src]

[src]

Creates a matrix whose elements are all zero.

impl<T: One + Zero> Matrix<T>
[src]

[src]

Creates a identity matrix.

impl<T: Clone> Matrix<T>
[src]

[src]

Returns transpose of the matrix.

Trait Implementations

impl<T: PartialEq> PartialEq for Matrix<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Eq> Eq for Matrix<T>
[src]

impl<T: Clone> Clone for Matrix<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Matrix<T>
[src]

[src]

Formats the value using the given formatter.

impl<T> Index<(usize, usize)> for Matrix<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> IndexMut<(usize, usize)> for Matrix<T>
[src]

[src]

Performs the mutable indexing (container[index]) operation.

impl<Lhs, Rhs> Add<Matrix<Rhs>> for Matrix<Lhs> where
    Lhs: Add<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, Lhs, Rhs> Add<Matrix<Rhs>> for &'a Matrix<Lhs> where
    Lhs: Add<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, Lhs, Rhs> Add<&'a Matrix<Rhs>> for Matrix<Lhs> where
    Lhs: Add<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b, Lhs, Rhs> Add<&'b Matrix<Rhs>> for &'a Matrix<Lhs> where
    Lhs: Add<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<Lhs, Rhs> Sub<Matrix<Rhs>> for Matrix<Lhs> where
    Lhs: Sub<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, Lhs, Rhs> Sub<Matrix<Rhs>> for &'a Matrix<Lhs> where
    Lhs: Sub<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, Lhs, Rhs> Sub<&'a Matrix<Rhs>> for Matrix<Lhs> where
    Lhs: Sub<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b, Lhs, Rhs> Sub<&'b Matrix<Rhs>> for &'a Matrix<Lhs> where
    Lhs: Sub<Rhs> + Clone,
    Rhs: Clone
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<Lhs, Rhs> Mul<Matrix<Rhs>> for Matrix<Lhs> where
    Lhs: Mul<Rhs> + Clone,
    Rhs: Clone,
    <Lhs as Mul<Rhs>>::Output: Add<Output = <Lhs as Mul<Rhs>>::Output>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, Lhs, Rhs> Mul<Matrix<Rhs>> for &'a Matrix<Lhs> where
    Lhs: Mul<Rhs> + Clone,
    Rhs: Clone,
    <Lhs as Mul<Rhs>>::Output: Add<Output = <Lhs as Mul<Rhs>>::Output>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, Lhs, Rhs> Mul<&'a Matrix<Rhs>> for Matrix<Lhs> where
    Lhs: Mul<Rhs> + Clone,
    Rhs: Clone,
    <Lhs as Mul<Rhs>>::Output: Add<Output = <Lhs as Mul<Rhs>>::Output>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, 'b, Lhs, Rhs> Mul<&'b Matrix<Rhs>> for &'a Matrix<Lhs> where
    Lhs: Mul<Rhs> + Clone,
    Rhs: Clone,
    <Lhs as Mul<Rhs>>::Output: Add<Output = <Lhs as Mul<Rhs>>::Output>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.