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

pub struct Matrix(_);

Trait Implementations

impl Debug for Matrix
[src]

[src]

Formats the value using the given formatter.

impl Clone for Matrix
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Matrix
[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 MatrixTrait for Matrix
[src]

[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);

[src]

Returns a new Matrix with m rows and n columns

Works exactly same as generate but accepts a Fn that returns each row of the matrix instead of each member of the matrix

[src]

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

[src]

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

[src]

Generates Matrix from a vector

[src]

Returns a row of Matrix

[src]

Number of the Matrix rows

[src]

Number of the Matrix columns

[src]

Returns the element in the position M,N

[src]

Multiplication with Matrix

[src]

Transpose of a Matrix

[src]

Map

[src]

Map for each row of Matrix

[src]

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