an unmodifiable row slice of a matrix.
Definition at line 58 of file Matrix.hpp.
#include <Matrix.hpp>
Public Member Functions | |
size_t | cols () const |
returns the number of columns in the 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... | |
ConstMatrixRowSlice () | |
default constructor More... | |
ConstMatrixRowSlice (const Matrix< T > &mat, size_t row) | |
makes a const row slice from the matrix More... | |
ConstMatrixRowSlice (const Matrix< T > &mat, size_t row, const std::slice &s) | |
makes a const row slice from the matrix, slicing that row by s . More... | |
T | operator() (size_t i) const |
returns the i'th element of the slice More... | |
T | operator() (size_t i, size_t j) const |
returns the (i,j) element of the slice More... | |
T | operator[] (size_t i) const |
returns the i'th element of the slice More... | |
size_t | rows () const |
returns the number of rows in the 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 overall size of the slice More... | |
Private Attributes | |
std::slice | cSlice |
the slice of the row's columns More... | |
const 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 669 of file Matrix.hpp.
|
inline |
makes a const row slice from the matrix
Definition at line 673 of file Matrix.hpp.
|
inline |
makes a const row slice from the matrix, slicing that row by s
.
Definition at line 678 of file Matrix.hpp.
|
inline |
returns the number of columns in the slice
Definition at line 700 of file Matrix.hpp.
|
inline |
returns the number of columns in this slice
Definition at line 711 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 713 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 715 of file Matrix.hpp.
|
inline |
returns the i'th element of the slice
Definition at line 690 of file Matrix.hpp.
|
inline |
returns the (i,j) element of the slice
Definition at line 694 of file Matrix.hpp.
|
inline |
returns the i'th element of the slice
Definition at line 687 of file Matrix.hpp.
|
inline |
returns the number of rows in the slice
Definition at line 698 of file Matrix.hpp.
|
inline |
returns the number of rows in this slice
Definition at line 705 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 707 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 709 of file Matrix.hpp.
|
inline |
returns the overall size of the slice
Definition at line 702 of file Matrix.hpp.
|
private |
the slice of the row's columns
Definition at line 722 of file Matrix.hpp.
|
private |
the matrix this slice refers to
Definition at line 718 of file Matrix.hpp.
|
private |
the row of the slice
Definition at line 720 of file Matrix.hpp.