an assignable single row slice of a matrix
Definition at line 57 of file Matrix.hpp.
#include <Matrix.hpp>
Public Member Functions | |
size_t | cols () const |
returns the number of columns in the row slice More... | |
size_t | colSize () const |
returns the number of columns in this slice More... | |
size_t | colStart () const |
returns the starting row in the base matrix of this slice More... | |
size_t | colStride () const |
returns the number of elements between the i'th and i+1'th row More... | |
MatrixRowSlice () | |
default constructor More... | |
MatrixRowSlice (Matrix< T > &mat, size_t row) | |
makes a slice of row row from the matrix. More... | |
MatrixRowSlice (Matrix< T > &mat, size_t row, const std::slice &s) | |
makes a slice of row row from the matrix, slicing it by s . More... | |
T & | operator() (size_t i, size_t j) |
returns the (i,j) element of the slice, non-const More... | |
T | operator() (size_t i, size_t j) const |
returns the (i,j) element of the slice, const More... | |
T & | operator() (size_t j) |
returns the j'th element of the slice, non-const More... | |
T | operator() (size_t j) const |
returns the j'th element of the slice, const More... | |
template<class V > | |
MatrixRowSlice & | operator= (const ConstMatrixBase< T, V > &x) |
assigns this row to x. More... | |
template<class V > | |
MatrixRowSlice & | operator= (const ConstVectorBase< T, V > &x) |
assigns this row to x. More... | |
MatrixRowSlice & | operator= (const std::valarray< T > &x) |
assigns this row to x. More... | |
MatrixRowSlice & | operator= (const T *x) |
assigns this row to x. More... | |
MatrixRowSlice & | operator= (const T x) |
assigns this row to x. More... | |
T & | operator[] (size_t j) |
returns the j'th element of the slice, non-const More... | |
T | operator[] (size_t j) const |
returns the j'th element of the slice, const More... | |
size_t | rows () const |
returns the number of rows in the row slice More... | |
size_t | rowSize () const |
returns the number of rows in this slice More... | |
size_t | rowStart () const |
returns the starting row in the base matrix of this slice More... | |
size_t | rowStride () const |
returns the number of elements between the i'th and i+1'th row More... | |
size_t | size () const |
returns the size of the slice More... | |
Private Attributes | |
std::slice | cSlice |
the column slice of the row. More... | |
Matrix< T > * | m |
the matrix this slice refers to. More... | |
size_t | r |
the row of the slice More... | |
|
inline |
default constructor
Definition at line 578 of file Matrix.hpp.
|
inline |
makes a slice of row row
from the matrix.
Definition at line 582 of file Matrix.hpp.
|
inline |
makes a slice of row row
from the matrix, slicing it by s
.
Definition at line 587 of file Matrix.hpp.
|
inline |
returns the number of columns in the row slice
Definition at line 635 of file Matrix.hpp.
|
inline |
returns the number of columns in this slice
Definition at line 646 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 648 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 650 of file Matrix.hpp.
|
inline |
returns the (i,j) element of the slice, non-const
Definition at line 626 of file Matrix.hpp.
|
inline |
returns the (i,j) element of the slice, const
Definition at line 629 of file Matrix.hpp.
|
inline |
returns the j'th element of the slice, non-const
Definition at line 617 of file Matrix.hpp.
|
inline |
returns the j'th element of the slice, const
Definition at line 623 of file Matrix.hpp.
|
inline |
assigns this row to x.
Definition at line 597 of file Matrix.hpp.
|
inline |
assigns this row to x.
Definition at line 601 of file Matrix.hpp.
|
inline |
assigns this row to x.
Definition at line 604 of file Matrix.hpp.
|
inline |
assigns this row to x.
Definition at line 610 of file Matrix.hpp.
|
inline |
assigns this row to x.
Definition at line 607 of file Matrix.hpp.
|
inline |
returns the j'th element of the slice, non-const
Definition at line 614 of file Matrix.hpp.
|
inline |
returns the j'th element of the slice, const
Definition at line 620 of file Matrix.hpp.
|
inline |
returns the number of rows in the row slice
Definition at line 633 of file Matrix.hpp.
|
inline |
returns the number of rows in this slice
Definition at line 640 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 642 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 644 of file Matrix.hpp.
|
inline |
returns the size of the slice
Definition at line 637 of file Matrix.hpp.
|
private |
the column slice of the row.
Definition at line 658 of file Matrix.hpp.
|
private |
the matrix this slice refers to.
Definition at line 654 of file Matrix.hpp.
|
private |
the row of the slice
Definition at line 656 of file Matrix.hpp.