Struct juggernaut::matrix::Matrix [] [src]

pub struct Matrix(_);

Trait Implementations

impl Debug for Matrix
[src]

Formats the value using the given formatter.

impl Clone for Matrix
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Matrix
[src]

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

This method tests for !=.

impl MatrixTrait for Matrix
[src]

Returns a vector with m rows and n columns

Example:

use juggernaut::matrix::Matrix;
use juggernaut::matrix::MatrixTrait;

let matrix = Matrix::generate(2, 2, &|_,_| 2f64);

Returns a vector with m rows and n columns with elements of 0

Returns a vector with m rows and n columns with random elements

Generates Matrix from a vector

Returns a row of Matrix

Number of the Matrix rows

Number of the Matrix columns

Returns the element in the position M,N

Multiplication with Matrix

Transpose of a Matrix

Map

To get the first element of the Matrix (Vec>)