Struct rulinalg::matrix::RowMut [] [src]

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

Mutable row of a matrix.

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

Example

use rulinalg::matrix::BaseMatrixMut;

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

{
    let mut row = mat.row_mut(1);
    *row += 2.0;
}
let expected = matrix![1.0, 2.0;
                       5.0, 6.0];
assert_matrix_eq!(mat, expected);

Methods

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

Returns the row as a slice.

Returns the row as a slice.

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

Trait Implementations

impl<'a, T> BaseMatrix<T> for RowMut<'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> BaseMatrixMut<T> for RowMut<'a, T>
[src]

Top left index of the slice.

Returns a MatrixSliceMut over the whole matrix. Read more

Get a mutable reference to a point in the matrix without bounds checks.

Returns a mutable iterator over the matrix. Read more

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

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

Returns a mutable reference to the row of a matrix at the given index. None if the index is out of bounds. Read more

Returns a mutable reference to the row of a matrix at the given index without doing a bounds check. Read more

Swaps two rows in a matrix. Read more

Swaps two columns in a matrix. Read more

Iterate over the mutable columns of the matrix. Read more

Iterate over the mutable rows of the matrix. Read more

Iterate over diagonal entries mutably Read more

Sets the underlying matrix data to the target data. Read more

Applies a function to each element in the matrix. Read more

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

Produce a MatrixSliceMut from an existing matrix. Read more

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

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T: 'a> DerefMut for RowMut<'a, T>
[src]

The method called to mutably dereference a value

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

The returned type after indexing

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

impl<'a, T> IndexMut<usize> for RowMut<'a, T>
[src]

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

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

Formats the value using the given formatter.