Struct mat::Mat [] [src]

pub struct Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS>,
    Prod<NROWS, NCOLS>: ArrayLength<T>, 
{ /* fields omitted */ }

Statically allocated (row major order) matrix

Trait Implementations

impl<T: Clone, NROWS: Clone, NCOLS: Clone> Clone for Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS>,
    Prod<NROWS, NCOLS>: ArrayLength<T>, 
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T, NROWS, NCOLS> Debug for Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS>,
    NCOLS: Unsigned,
    Prod<NROWS, NCOLS>: ArrayLength<T>,
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, T, NROWS, NCOLS> Matrix for &'a Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS> + Unsigned,
    NCOLS: Unsigned,
    Prod<NROWS, NCOLS>: ArrayLength<T>,
    T: Copy
[src]

Number of rows

Number of columns

[src]

Returns the element at row r and column c Read more

[src]

Returns the size of the matrix

[src]

Returns the number of rows of the matrix

[src]

Returns the number of columns of the matrix

impl<'a, T, NROWS, NCOLS> UnsafeGet for &'a Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS> + Unsigned,
    NCOLS: Unsigned,
    Prod<NROWS, NCOLS>: ArrayLength<T>,
    T: Copy
[src]

The matrix element type

[src]

Returns the element at row r and column c with performing bounds checks

impl<T, NROWS, NCOLS> Index<usize> for Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS> + Unsigned,
    NCOLS: ArrayLength<T> + Unsigned,
    Prod<NROWS, NCOLS>: ArrayLength<T>, 
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T, NROWS, NCOLS> IndexMut<usize> for Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS> + Unsigned,
    NCOLS: ArrayLength<T> + Unsigned,
    Prod<NROWS, NCOLS>: ArrayLength<T>, 
[src]

[src]

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

impl<'a, T, NROWS, NCOLS, R> Mul<R> for &'a Mat<T, NROWS, NCOLS> where
    NROWS: Mul<NCOLS>,
    NCOLS: Unsigned,
    Prod<NROWS, NCOLS>: ArrayLength<T>,
    R: Matrix<NROWS = NCOLS>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

Auto Trait Implementations

impl<T, NROWS, NCOLS> Send for Mat<T, NROWS, NCOLS> where
    NCOLS: Send,
    NROWS: Send,
    T: Send

impl<T, NROWS, NCOLS> Sync for Mat<T, NROWS, NCOLS> where
    NCOLS: Sync,
    NROWS: Sync,
    T: Sync