Class for storing data required to extract and set the diagonals of a matrix. More...
#include <diagview_bones.hpp>
Public Types | |
typedef eT | elem_type |
typedef get_pod_type< eT >::result | pod_type |
Public Member Functions | |
arma_inline eT & | at (const uword i) |
arma_inline eT | at (const uword i) const |
arma_inline eT & | at (const uword in_n_row, const uword in_n_col) |
arma_inline eT | at (const uword in_n_row, const uword in_n_col) const |
void | fill (const eT val) |
void | ones () |
template<typename T1 > | |
void | operator%= (const Base< eT, T1 > &x) |
arma_inline eT & | operator() (const uword i) |
arma_inline eT | operator() (const uword i) const |
arma_inline eT & | operator() (const uword in_n_row, const uword in_n_col) |
arma_inline eT | operator() (const uword in_n_row, const uword in_n_col) const |
void | operator*= (const eT val) |
void | operator+= (const eT val) |
template<typename T1 > | |
void | operator+= (const Base< eT, T1 > &x) |
void | operator-= (const eT val) |
template<typename T1 > | |
void | operator-= (const Base< eT, T1 > &x) |
void | operator/= (const eT val) |
template<typename T1 > | |
void | operator/= (const Base< eT, T1 > &x) |
void | operator= (const diagview &x) |
set a diagonal of our matrix using a diagonal from a foreign matrix | |
template<typename T1 > | |
void | operator= (const Base< eT, T1 > &x) |
set a diagonal of our matrix using data from a foreign object | |
arma_inline eT & | operator[] (const uword i) |
arma_inline eT | operator[] (const uword i) const |
void | zeros () |
~diagview () | |
Static Public Member Functions | |
static void | div_inplace (Mat< eT > &out, const diagview &in) |
X /= Y.diag() | |
static void | extract (Mat< eT > &out, const diagview &in) |
extract a diagonal and store it as a column vector | |
static void | minus_inplace (Mat< eT > &out, const diagview &in) |
X -= Y.diag() | |
static void | plus_inplace (Mat< eT > &out, const diagview &in) |
X += Y.diag() | |
static void | schur_inplace (Mat< eT > &out, const diagview &in) |
X %= Y.diag() | |
Public Attributes | |
const uword | col_offset |
arma_aligned const Mat< eT > & | m |
const uword | n_elem |
const uword | n_rows |
const uword | row_offset |
Static Public Attributes | |
static const uword | n_cols = 1 |
Protected Member Functions | |
arma_inline | diagview (const Mat< eT > &in_m, const uword in_row_offset, const uword in_col_offset, const uword len) |
arma_inline | diagview (Mat< eT > &in_m, const uword in_row_offset, const uword in_col_offset, const uword len) |
Protected Attributes | |
arma_aligned Mat< eT > * | m_ptr |
Private Member Functions | |
diagview () | |
Friends | |
class | Mat< eT > |
class | subview< eT > |
Class for storing data required to extract and set the diagonals of a matrix.
Definition at line 20 of file diagview_bones.hpp.
Definition at line 27 of file diagview_bones.hpp.
typedef get_pod_type<eT>::result diagview< eT >::pod_type |
Definition at line 28 of file diagview_bones.hpp.
friend class Mat< eT > [friend] |
Definition at line 93 of file diagview_bones.hpp.
friend class subview< eT > [friend] |
Definition at line 94 of file diagview_bones.hpp.
const uword diagview< eT >::col_offset |
Definition at line 31 of file diagview_bones.hpp.
arma_aligned const Mat<eT>& diagview< eT >::m |
Definition at line 22 of file diagview_bones.hpp.
arma_aligned Mat<eT>* diagview< eT >::m_ptr [protected] |
Definition at line 23 of file diagview_bones.hpp.
Definition at line 36 of file diagview_bones.hpp.
Definition at line 34 of file diagview_bones.hpp.
Definition at line 33 of file diagview_bones.hpp.
const uword diagview< eT >::row_offset |
Definition at line 30 of file diagview_bones.hpp.