#include <Matrix.hpp>
Inheritance diagram for MatrixSlice:


Definition at line 228 of file Matrix.hpp.
Public Member Functions | |
| MatrixSlice () | |
| default constructor | |
| MatrixSlice (Matrix< T > &mat) | |
| Makes a slice of the whole matrix. | |
| MatrixSlice (Matrix< T > &mat, const std::slice &rowSlice, const std::slice &colSlice) | |
| Makes a partial slice of a matrix. | |
| MatrixSlice (Matrix< T > &mat, size_t topRow, size_t topCol, size_t numRows, size_t numCols) | |
| Submatrix slice. | |
| template<class V> | |
| MatrixSlice & | operator= (const ConstMatrixBase< T, V > &x) |
| Copies from x to (*this). | |
| template<class V> | |
| MatrixSlice & | operator= (const ConstVectorBase< T, V > &x) |
| Copies from x to (*this). | |
| MatrixSlice & | operator= (const std::valarray< T > &x) |
| Copies from x to (*this). | |
| MatrixSlice & | operator= (const T x) |
| Copies from x to (*this). | |
| MatrixSlice & | operator= (const T *x) |
| Copies from x to (*this). | |
| size_t | size () const |
| returns the size of this slice | |
| size_t | cols () const |
| returns the number of columns in the slice | |
| size_t | rows () const |
| returns the number of rows in the slice | |
| T & | operator() (size_t i, size_t j) |
| returns the (i,j) element of the slice. | |
| T | operator() (size_t i, size_t j) const |
| returns the (i,j) element of the slice, const version. | |
| size_t | rowSize () const |
| returns the number of rows in this slice | |
| size_t | rowStart () const |
| returns the starting row in the base matrix of this slice | |
| size_t | rowStride () const |
| returns the number of elements between the i'th and i+1'th row | |
| size_t | colSize () const |
| returns the number of columns in this slice | |
| size_t | colStart () const |
| returns the starting row in the base matrix of this slice | |
| size_t | colStride () const |
| returns the number of elements between the i'th and i+1'th row | |
|
|
default constructor
Definition at line 232 of file Matrix.hpp. |
|
|
Makes a slice of the whole matrix.
Definition at line 237 of file Matrix.hpp. References Matrix::cols(), and Matrix::rows(). |
|
||||||||||||||||
|
Makes a partial slice of a matrix.
Definition at line 245 of file Matrix.hpp. References Matrix::cols(), and Matrix::rows(). |
|
||||||||||||||||||||||||
|
Submatrix slice.
Definition at line 254 of file Matrix.hpp. References Matrix::cols(), and Matrix::rows(). |
|
|
returns the number of columns in the slice
Reimplemented from RefMatrixBase< T, MatrixSlice< T > >. Definition at line 286 of file Matrix.hpp. |
|
|
returns the number of columns in this slice
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 306 of file Matrix.hpp. References ConstMatrixBase::size(). |
|
|
returns the starting row in the base matrix of this slice
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 308 of file Matrix.hpp. |
|
|
returns the number of elements between the i'th and i+1'th row
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 310 of file Matrix.hpp. |
|
||||||||||||
|
returns the (i,j) element of the slice, const version.
Reimplemented from ConstMatrixBase< T, MatrixSlice< T > >. Definition at line 294 of file Matrix.hpp. |
|
||||||||||||
|
returns the (i,j) element of the slice.
Reimplemented from RefMatrixBase< T, MatrixSlice< T > >. Definition at line 290 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 280 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 277 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 274 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 270 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 265 of file Matrix.hpp. |
|
|
returns the number of rows in the slice
Reimplemented from RefMatrixBase< T, MatrixSlice< T > >. Definition at line 288 of file Matrix.hpp. |
|
|
returns the number of rows in this slice
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 300 of file Matrix.hpp. References ConstMatrixBase::size(). |
|
|
returns the starting row in the base matrix of this slice
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 302 of file Matrix.hpp. |
|
|
returns the number of elements between the i'th and i+1'th row
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 304 of file Matrix.hpp. |
|
|
returns the size of this slice
Reimplemented from RefMatrixBase< T, MatrixSlice< T > >. Definition at line 284 of file Matrix.hpp. |
1.3.9.1