Struct rulinalg::matrix::Row [] [src]

pub struct Row<'a, T: 'a> { /* fields omitted */ }

Row of a matrix.

This struct points to a slice making up a row in a matrix. You can deref this struct to retrieve a MatrixSlice of the row.

Example

use rulinalg::matrix::BaseMatrix;

let mat = matrix![1.0, 2.0;
                  3.0, 4.0];

let row = mat.row(1);
assert_eq!((*row + 2.0).sum(), 11.0);

Methods

impl<'a, T: 'a> Row<'a, T>
[src]

Returns the row as a slice.

Methods from Deref<Target=MatrixSlice<'a, T>>

Trait Implementations

impl<'a, T> BaseMatrix<T> for Row<'a, T>
[src]

Rows in the matrix.

Columns in the matrix.

Row stride in the matrix.

Top left index of the matrix.

Returns true if the matrix contais no elements

Returns a MatrixSlice over the whole matrix. Read more

Get a reference to a point in the matrix without bounds checking.

Returns the column of a matrix at the given index. None if the index is out of bounds. Read more

Returns the column of a matrix at the given index without doing a bounds check. Read more

Returns the row of a matrix at the given index. Read more

Returns the row of a matrix at the given index without doing unbounds checking Read more

Returns an iterator over the matrix data. Read more

Iterate over the columns of the matrix. Read more

Iterate over the rows of the matrix. Read more

Iterate over diagonal entries Read more

The sum of the rows of the matrix. Read more

The sum of the columns of the matrix. Read more

Compute given matrix norm for matrix. Read more

Compute the metric distance between two matrices. Read more

The sum of all elements in the matrix Read more

The min of the specified axis of the matrix. Read more

The max of the specified axis of the matrix. Read more

Convert the matrix struct into a owned Matrix.

Select rows from matrix Read more

Select columns from matrix Read more

The elementwise product of two matrices. Read more

The elementwise division of two matrices. Read more

Select block matrix from matrix Read more

Horizontally concatenates two matrices. With self on the left. Read more

Vertically concatenates two matrices. With self on top. Read more

Extract the diagonal of the matrix Read more

Tranposes the given matrix Read more

Checks if matrix is diagonal. Read more

Solves an upper triangular linear system. Read more

Solves a lower triangular linear system. Read more

Split the matrix at the specified axis returning two MatrixSlices. Read more

Produce a MatrixSlice from an existing matrix. Read more

impl<'a, T: 'a> Deref for Row<'a, T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T> Index<usize> for Row<'a, T>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a, T: Debug + 'a> Debug for Row<'a, T>
[src]

Formats the value using the given formatter.

impl<'a, T: Clone + 'a> Clone for Row<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: Copy + 'a> Copy for Row<'a, T>
[src]