an assignable single column slice of a matrix
Definition at line 59 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... | |
MatrixColSlice () | |
default constructor More... | |
MatrixColSlice (Matrix< T > &mat, size_t col) | |
makes a slice of the column col from matrix mat . More... | |
MatrixColSlice (Matrix< T > &mat, size_t col, const std::slice &s) | |
T & | operator() (size_t i) |
returns the i'th element of the column, non-const More... | |
T | operator() (size_t i) const |
returns the i'th element of the column, const More... | |
T & | operator() (size_t i, size_t j) |
returns the (i,j) element, non-const More... | |
T | operator() (size_t i, size_t j) const |
returns the (i,j) element, non-const More... | |
template<class V > | |
MatrixColSlice & | operator= (const ConstMatrixBase< T, V > &x) |
assigns this column to x More... | |
template<class V > | |
MatrixColSlice & | operator= (const ConstVectorBase< T, V > &x) |
assigns this column to x More... | |
MatrixColSlice & | operator= (const std::valarray< T > &x) |
assigns this column to x More... | |
MatrixColSlice & | operator= (const T *x) |
assigns this column to x More... | |
MatrixColSlice & | operator= (const T x) |
assigns this column to x More... | |
T & | operator[] (size_t i) |
returns the i'th element of the column, non-const More... | |
T | operator[] (size_t i) const |
returns the i'th element of the column, const 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 size of the slice More... | |
Private Attributes | |
size_t | c |
the column this slice is for More... | |
Matrix< T > * | m |
the matrix this slice refers to. More... | |
std::slice | rSlice |
slice down the rows More... | |
|
inline |
default constructor
Definition at line 419 of file Matrix.hpp.
|
inline |
makes a slice of the column col
from matrix mat
.
Definition at line 421 of file Matrix.hpp.
|
inline |
makes a slice of the column from the matrix using s
to further slice the column.
Definition at line 428 of file Matrix.hpp.
|
inline |
returns the number of columns in the slice
Definition at line 477 of file Matrix.hpp.
|
inline |
returns the number of columns in this slice
Definition at line 488 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 490 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 492 of file Matrix.hpp.
|
inline |
returns the i'th element of the column, non-const
Definition at line 458 of file Matrix.hpp.
|
inline |
returns the i'th element of the column, const
Definition at line 464 of file Matrix.hpp.
|
inline |
returns the (i,j) element, non-const
Definition at line 468 of file Matrix.hpp.
|
inline |
returns the (i,j) element, non-const
Definition at line 471 of file Matrix.hpp.
|
inline |
assigns this column to x
Definition at line 437 of file Matrix.hpp.
|
inline |
assigns this column to x
Definition at line 442 of file Matrix.hpp.
|
inline |
assigns this column to x
Definition at line 445 of file Matrix.hpp.
|
inline |
assigns this column to x
Definition at line 451 of file Matrix.hpp.
|
inline |
assigns this column to x
Definition at line 448 of file Matrix.hpp.
|
inline |
returns the i'th element of the column, non-const
Definition at line 455 of file Matrix.hpp.
|
inline |
returns the i'th element of the column, const
Definition at line 461 of file Matrix.hpp.
|
inline |
returns the number of rows in the slice
Definition at line 475 of file Matrix.hpp.
|
inline |
returns the number of rows in this slice
Definition at line 482 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 484 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 486 of file Matrix.hpp.
|
inline |
returns the size of the slice
Definition at line 479 of file Matrix.hpp.
|
private |
the column this slice is for
Definition at line 498 of file Matrix.hpp.
|
private |
the matrix this slice refers to.
Definition at line 496 of file Matrix.hpp.
|
private |
slice down the rows
Definition at line 500 of file Matrix.hpp.