a constant slice of a single column from a matrix.
Definition at line 60 of file Matrix.hpp.
#include <Matrix.hpp>
Public Member Functions | |
size_t | cols () const |
returns the size of the slice in columns 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... | |
ConstMatrixColSlice () | |
default constructor More... | |
ConstMatrixColSlice (const Matrix< T > &mat, size_t col) | |
constructor taking a slice of column col from the matrix. More... | |
ConstMatrixColSlice (const Matrix< T > &mat, size_t col, const std::slice &s) | |
T | operator() (size_t i) const |
returns the i'th element of the column slice More... | |
T | operator() (size_t i, size_t j) const |
returns the (i,j) element of the column slice More... | |
T | operator[] (size_t i) const |
returns the i'th element of the column slice More... | |
size_t | rows () const |
returns the size of the slice in rows 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 | |
size_t | c |
the column this slice refers to More... | |
const Matrix< T > * | m |
the matrix this slice refers to More... | |
std::slice | rSlice |
a slice down the rows More... | |
|
inline |
default constructor
Definition at line 512 of file Matrix.hpp.
|
inline |
constructor taking a slice of column col
from the matrix.
Definition at line 517 of file Matrix.hpp.
|
inline |
constructor taking a slice of column col
from the matrix, slicing the column by s
.
Definition at line 523 of file Matrix.hpp.
|
inline |
returns the size of the slice in columns
Definition at line 545 of file Matrix.hpp.
|
inline |
returns the number of columns in this slice
Definition at line 556 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 558 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 560 of file Matrix.hpp.
|
inline |
returns the i'th element of the column slice
Definition at line 535 of file Matrix.hpp.
|
inline |
returns the (i,j) element of the column slice
Definition at line 539 of file Matrix.hpp.
|
inline |
returns the i'th element of the column slice
Definition at line 532 of file Matrix.hpp.
|
inline |
returns the size of the slice in rows
Definition at line 543 of file Matrix.hpp.
|
inline |
returns the number of rows in this slice
Definition at line 550 of file Matrix.hpp.
|
inline |
returns the starting row in the base matrix of this slice
Definition at line 552 of file Matrix.hpp.
|
inline |
returns the number of elements between the i'th and i+1'th row
Definition at line 554 of file Matrix.hpp.
|
inline |
returns the overall size of the slice
Definition at line 547 of file Matrix.hpp.
|
private |
the column this slice refers to
Definition at line 565 of file Matrix.hpp.
|
private |
the matrix this slice refers to
Definition at line 563 of file Matrix.hpp.
|
private |
a slice down the rows
Definition at line 567 of file Matrix.hpp.