Class for storing data required to construct or apply operations to a submatrix (i.e. where the submatrix starts and ends as well as a reference/pointer to the original matrix),. More...
#include <subview_proto.hpp>
Public Types | |
| typedef eT | elem_type |
| typedef get_pod_type < elem_type >::result | pod_type |
Public Member Functions | |
| ~subview () | |
| void | operator+= (const eT val) |
| void | operator-= (const eT val) |
| void | operator*= (const eT val) |
| void | operator/= (const eT val) |
| template<typename T1 > | |
| void | operator_equ_mat (const Base< eT, T1 > &x) |
| template<typename T1 > | |
| void | operator_equ_proxy (const Base< eT, T1 > &x) |
| template<typename T1 > | |
| void | operator= (const Base< eT, T1 > &x) |
| template<typename T1 > | |
| void | operator+= (const Base< eT, T1 > &x) |
| template<typename T1 > | |
| void | operator-= (const Base< eT, T1 > &x) |
| template<typename T1 > | |
| void | operator%= (const Base< eT, T1 > &x) |
| template<typename T1 > | |
| void | operator/= (const Base< eT, T1 > &x) |
| void | operator= (const subview &x) |
| x.submat(...) = y.submat(...) | |
| void | operator+= (const subview &x) |
| void | operator-= (const subview &x) |
| void | operator%= (const subview &x) |
| void | operator/= (const subview &x) |
| void | fill (const eT val) |
| void | zeros () |
| 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 & | operator() (const u32 in_row, const u32 in_col) |
| arma_inline eT | operator() (const u32 in_row, const u32 in_col) const |
| arma_inline eT & | at (const u32 in_row, const u32 in_col) |
| arma_inline eT | at (const u32 in_row, const u32 in_col) const |
| arma_inline eT * | colptr (const u32 in_col) |
| arma_inline const eT * | colptr (const u32 in_col) const |
| bool | check_overlap (const subview &x) const |
| bool | is_vec () const |
Static Public Member Functions | |
| static void | extract (Mat< eT > &out, const subview &in) |
| X = Y.submat(...). | |
| static void | plus_inplace (Mat< eT > &out, const subview &in) |
| X += Y.submat(...). | |
| static void | minus_inplace (Mat< eT > &out, const subview &in) |
| X -= Y.submat(...). | |
| static void | schur_inplace (Mat< eT > &out, const subview &in) |
| X = Y.submat(...). | |
| static void | div_inplace (Mat< eT > &out, const subview &in) |
| X /= Y.submat(...). | |
Public Attributes | |
| arma_aligned const Mat< eT > & | m |
| const u32 | aux_row1 |
| const u32 | aux_col1 |
| const u32 | aux_row2 |
| const u32 | aux_col2 |
| const u32 | n_rows |
| const u32 | n_cols |
| const u32 | n_elem |
Protected Member Functions | |
| arma_inline | subview (const Mat< eT > &in_m, const u32 in_row1, const u32 in_col1, const u32 in_row2, const u32 in_col2) |
| arma_inline | subview (Mat< eT > &in_m, const u32 in_row1, const u32 in_col1, const u32 in_row2, const u32 in_col2) |
Protected Attributes | |
| arma_aligned Mat< eT > * | m_ptr |
Private Member Functions | |
| subview () | |
Friends | |
| class | Mat< eT > |
Class for storing data required to construct or apply operations to a submatrix (i.e. where the submatrix starts and ends as well as a reference/pointer to the original matrix),.
Definition at line 24 of file subview_proto.hpp.
Reimplemented in subview_col< eT >, and subview_row< eT >.
Definition at line 31 of file subview_proto.hpp.
| typedef get_pod_type<elem_type>::result subview< eT >::pod_type |
Reimplemented in subview_col< eT >, and subview_row< eT >.
Definition at line 32 of file subview_proto.hpp.
friend class Mat< eT > [friend] |
Reimplemented in subview_col< eT >, and subview_row< eT >.
Definition at line 108 of file subview_proto.hpp.
Definition at line 26 of file subview_proto.hpp.
Referenced by accu(), subview< eT >::at(), subview< eT >::check_overlap(), subview< eT >::colptr(), subview< eT >::extract(), subview< eT >::operator%=(), subview< eT >::operator()(), subview< eT >::operator+=(), subview< eT >::operator-=(), subview< eT >::operator/=(), subview< eT >::operator=(), subview< eT >::operator[](), and prod().
Definition at line 27 of file subview_proto.hpp.
Referenced by subview< eT >::at(), subview< eT >::colptr(), subview< eT >::operator()(), and subview< eT >::operator[]().
Definition at line 34 of file subview_proto.hpp.
Referenced by accu(), subview< eT >::at(), subview< eT >::check_overlap(), subview< eT >::colptr(), subview< eT >::extract(), subview< eT >::operator%=(), subview< eT >::operator()(), subview< eT >::operator+=(), subview< eT >::operator-=(), subview< eT >::operator/=(), subview< eT >::operator=(), subview< eT >::operator[](), and prod().
Definition at line 35 of file subview_proto.hpp.
Referenced by accu(), subview< eT >::at(), subview< eT >::check_overlap(), subview< eT >::colptr(), subview< eT >::extract(), subview< eT >::operator%=(), subview< eT >::operator()(), subview< eT >::operator+=(), subview< eT >::operator-=(), subview< eT >::operator/=(), subview< eT >::operator=(), subview< eT >::operator[](), and prod().
Definition at line 37 of file subview_proto.hpp.
Referenced by subview< eT >::check_overlap(), subview< eT >::operator%=(), subview< eT >::operator+=(), subview< eT >::operator-=(), subview< eT >::operator/=(), and subview< eT >::operator=().
Definition at line 38 of file subview_proto.hpp.
Referenced by accu(), subview< eT >::check_overlap(), subview< eT >::operator%=(), subview< eT >::operator+=(), subview< eT >::operator-=(), subview< eT >::operator/=(), subview< eT >::operator=(), and prod().
Definition at line 40 of file subview_proto.hpp.
Referenced by accu(), arma_assert_mul_size(), arma_assert_same_size(), subview< eT >::div_inplace(), subview< eT >::extract(), subview< eT >::fill(), subview< eT >::is_vec(), subview< eT >::minus_inplace(), subview< eT >::operator%=(), subview< eT >::operator()(), subview< eT >::operator*=(), subview< eT >::operator+=(), subview< eT >::operator-=(), subview< eT >::operator/=(), subview< eT >::operator=(), subview< eT >::operator[](), subview< eT >::operator_equ_mat(), subview< eT >::plus_inplace(), prod(), subview< eT >::schur_inplace(), and subview< eT >::zeros().
Definition at line 41 of file subview_proto.hpp.
Referenced by accu(), arma_assert_mul_size(), arma_assert_same_size(), subview< eT >::div_inplace(), subview< eT >::extract(), subview< eT >::fill(), subview< eT >::is_vec(), subview< eT >::minus_inplace(), subview< eT >::operator%=(), subview< eT >::operator()(), subview< eT >::operator*=(), subview< eT >::operator+=(), subview< eT >::operator-=(), subview< eT >::operator/=(), subview< eT >::operator=(), subview< eT >::operator_equ_mat(), subview< eT >::plus_inplace(), subview< eT >::schur_inplace(), and subview< eT >::zeros().
Definition at line 42 of file subview_proto.hpp.
Referenced by op_max::direct_max(), op_mean::direct_mean(), op_median::direct_median(), op_min::direct_min(), op_var::direct_var(), max(), mean(), median(), min(), subview< eT >::operator()(), prod(), stddev(), and var().