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


Definition at line 229 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 233 of file Matrix.hpp. |
|
|
Makes a slice of the whole matrix.
Definition at line 238 of file Matrix.hpp. References Matrix::cols(), and Matrix::rows(). |
|
||||||||||||||||
|
Makes a partial slice of a matrix.
Definition at line 246 of file Matrix.hpp. References Matrix::cols(), and Matrix::rows(). |
|
||||||||||||||||||||||||
|
Submatrix slice.
Definition at line 255 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 287 of file Matrix.hpp. |
|
|
returns the number of columns in this slice
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 307 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 309 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 311 of file Matrix.hpp. |
|
||||||||||||
|
returns the (i,j) element of the slice, const version.
Reimplemented from ConstMatrixBase< T, MatrixSlice< T > >. Definition at line 295 of file Matrix.hpp. |
|
||||||||||||
|
returns the (i,j) element of the slice.
Reimplemented from RefMatrixBase< T, MatrixSlice< T > >. Definition at line 291 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 281 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 278 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 275 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 271 of file Matrix.hpp. |
|
|
Copies from x to (*this).
Definition at line 266 of file Matrix.hpp. |
|
|
returns the number of rows in the slice
Reimplemented from RefMatrixBase< T, MatrixSlice< T > >. Definition at line 289 of file Matrix.hpp. |
|
|
returns the number of rows in this slice
Reimplemented from MatrixSliceBase< T, MatrixSlice< T > >. Definition at line 301 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 303 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 305 of file Matrix.hpp. |
|
|
returns the size of this slice
Reimplemented from RefMatrixBase< T, MatrixSlice< T > >. Definition at line 285 of file Matrix.hpp. |
1.3.9.1