Class for storing data required to extract and set the diagonals of a matrix. More...
#include <diagview_proto.hpp>
Public Types | |
typedef eT | elem_type |
typedef get_pod_type< eT >::result | pod_type |
Public Member Functions | |
~diagview () | |
template<typename T1 > | |
void | operator= (const Base< eT, T1 > &x) |
set a diagonal of our matrix using data from a foreign object | |
void | operator= (const diagview &x) |
set a diagonal of our matrix using a diagonal from a foreign matrix | |
arma_inline eT & | operator[] (const u32 i) |
arma_inline eT | operator[] (const u32 i) const |
arma_inline eT & | operator() (const u32 i) |
arma_inline eT | operator() (const u32 i) const |
arma_inline eT & | at (const u32 in_n_row, const u32 in_n_col) |
arma_inline eT | at (const u32 in_n_row, const u32 in_n_col) const |
arma_inline eT & | operator() (const u32 in_n_row, const u32 in_n_col) |
arma_inline eT | operator() (const u32 in_n_row, const u32 in_n_col) const |
void | fill (const eT val) |
void | zeros () |
void | ones () |
Static Public Member Functions | |
static void | extract (Mat< eT > &out, const diagview &in) |
//! extract a diagonal and store it as a column vector | |
static void | plus_inplace (Mat< eT > &out, const diagview &in) |
X += Y.diagview(...). | |
static void | minus_inplace (Mat< eT > &out, const diagview &in) |
X -= Y.diagview(...). | |
static void | schur_inplace (Mat< eT > &out, const diagview &in) |
X = Y.submat(...). | |
static void | div_inplace (Mat< eT > &out, const diagview &in) |
X /= Y.diagview(...). | |
Public Attributes | |
const Mat< eT > & | m |
const u32 | row_offset |
const u32 | col_offset |
const u32 | n_rows |
const u32 | n_cols |
const u32 | n_elem |
Protected Member Functions | |
arma_inline | diagview (const Mat< eT > &in_m, const u32 in_row_offset, const u32 in_col_offset, const u32 len) |
arma_inline | diagview (Mat< eT > &in_m, const u32 in_row_offset, const u32 in_col_offset, const u32 len) |
Protected Attributes | |
Mat< eT > * | m_ptr |
Private Member Functions | |
diagview () | |
Friends | |
class | Mat< eT > |
Class for storing data required to extract and set the diagonals of a matrix.
Definition at line 23 of file diagview_proto.hpp.
Definition at line 30 of file diagview_proto.hpp.
typedef get_pod_type<eT>::result diagview< eT >::pod_type |
Definition at line 31 of file diagview_proto.hpp.
friend class Mat< eT > [friend] |
Definition at line 83 of file diagview_proto.hpp.
Definition at line 25 of file diagview_proto.hpp.
Referenced by diagview< eT >::at(), diagview< eT >::div_inplace(), diagview< eT >::extract(), diagview< eT >::minus_inplace(), diagview< eT >::operator()(), diagview< eT >::operator=(), diagview< eT >::operator[](), diagview< eT >::plus_inplace(), and diagview< eT >::schur_inplace().
Definition at line 26 of file diagview_proto.hpp.
Referenced by diagview< eT >::fill(), diagview< eT >::ones(), diagview< eT >::operator()(), diagview< eT >::operator=(), and diagview< eT >::zeros().
const u32 diagview< eT >::row_offset |
Definition at line 33 of file diagview_proto.hpp.
Referenced by diagview< eT >::at(), diagview< eT >::div_inplace(), diagview< eT >::extract(), diagview< eT >::fill(), diagview< eT >::minus_inplace(), diagview< eT >::ones(), diagview< eT >::operator()(), diagview< eT >::operator=(), diagview< eT >::operator[](), diagview< eT >::plus_inplace(), diagview< eT >::schur_inplace(), and diagview< eT >::zeros().
const u32 diagview< eT >::col_offset |
Definition at line 34 of file diagview_proto.hpp.
Referenced by diagview< eT >::at(), diagview< eT >::div_inplace(), diagview< eT >::extract(), diagview< eT >::fill(), diagview< eT >::minus_inplace(), diagview< eT >::ones(), diagview< eT >::operator()(), diagview< eT >::operator=(), diagview< eT >::operator[](), diagview< eT >::plus_inplace(), diagview< eT >::schur_inplace(), and diagview< eT >::zeros().
Definition at line 36 of file diagview_proto.hpp.
Referenced by diagview< eT >::div_inplace(), diagview< eT >::minus_inplace(), diagview< eT >::plus_inplace(), and diagview< eT >::schur_inplace().
Definition at line 37 of file diagview_proto.hpp.
Definition at line 38 of file diagview_proto.hpp.
Referenced by accu(), op_max::direct_max(), op_mean::direct_mean(), op_median::direct_median(), op_min::direct_min(), op_var::direct_var(), diagview< eT >::div_inplace(), diagview< eT >::extract(), diagview< eT >::fill(), max(), mean(), median(), min(), diagview< eT >::minus_inplace(), diagview< eT >::ones(), diagview< eT >::operator()(), diagview< eT >::operator=(), diagview< eT >::plus_inplace(), prod(), diagview< eT >::schur_inplace(), stddev(), var(), and diagview< eT >::zeros().