|
MyraMath
|
Represents a const DiagonalMatrixRange. More...
#include <DiagonalMatrixRange.h>
Public Types | |
| typedef std::pair< CDiagonalMatrixRange< Number >, CDiagonalMatrixRange< Number > > | Pair |
Public Member Functions | |
| CDiagonalMatrixRange () | |
| Default constructs a size 0 range. | |
| CDiagonalMatrixRange (const Number *in_begin, int in_N) | |
| Constructs from components. | |
| void | write (OutputStream &out) const |
| Writes to OutputStream. Layout compatible with DiagonalMatrix's InputStream constructor. | |
| int | size () const |
| Size inspector. | |
| int | n_words () const |
| Storage requirements. | |
| const DiagonalMatrixRange< Number > | remove_const () const |
| Casts away "const" (C) qualifier, returning a DiagonalMatrixRange<Number> | |
| const CDiagonalMatrixRange< Number > | window (int n0, int n1) const |
| Returns this(n0:n1) | |
| const CVectorRange< Number > | vector () const |
| Constructs a CVectorRange over *this. | |
| const Number & | operator() (int n) const |
| Random accessor. | |
| const Number & | at (int n) const |
| Bounds checked random accessor. | |
| const CDiagonalMatrixRange< Number > | first (int n) const |
| Returns the first n entries, this(0:n) | |
| const CDiagonalMatrixRange< Number > | cut_first (int n) const |
| Cuts the first n entries, returns this(n:N) | |
| const Pair | split_first (int n) const |
| Splits this range, returns [this->first(n), this->cut_first(n)]. | |
| const CDiagonalMatrixRange< Number > | last (int n) const |
| Returns the last n entries, this(N-n:N) | |
| const CDiagonalMatrixRange< Number > | cut_last (int n) const |
| Cuts the last n entries, returns this (0:N-n) | |
| const Pair | split_last (int n) const |
| Splits this range, returns [this->cut_last(n), this->last(n)]. | |
| Matrix< Number > | make_Matrix () const |
| Accumulates *this onto a Matrix<Number>. | |
| void | make_Matrix (const MatrixRange< Number > &A) const |
| Accumulates *this onto a Matrix<Number>. | |
| Vector< Number > | make_Vector () const |
| Accumulates *this onto a Vector<Number>. | |
| void | make_Vector (const VectorRange< Number > &A) const |
| Accumulates *this onto a Vector<Number>. | |
Public Attributes | |
| const Number * | begin |
| ---------— Data members, all public ----------------— | |
| int | N |
| ---------— Data members, all public ----------------— | |
Represents a const DiagonalMatrixRange.
1.8.13