Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
subview< eT > Class Template Reference

#include <forward_bones.hpp>

Inheritance diagram for subview< eT >:
Inheritance graph
[legend]

Public Types

typedef eT elem_type
 
typedef get_pod_type< elem_type >::result pod_type
 

Public Member Functions

eT & at (const uword in_row, const uword in_col)
 
eT at (const uword in_row, const uword in_col) const
 
bool check_overlap (const subview &x) const
 
subview_col< eT > col (const uword col_num)
 creation of subview (column vector) More...
 
const subview_col< eT > col (const uword col_num) const
 creation of subview (column vector) More...
 
arma_inline eT * colptr (const uword in_col)
 
arma_inline const eT * colptr (const uword in_col) const
 
subview< eT > cols (const uword in_col1, const uword in_col2)
 creation of subview (submatrix comprised of specified column vectors) More...
 
const subview< eT > cols (const uword in_col1, const uword in_col2) const
 creation of subview (submatrix comprised of specified column vectors) More...
 
diagview< eT > diag (const sword in_id=0)
 creation of diagview (diagonal) More...
 
const diagview< eT > diag (const sword in_id=0) const
 creation of diagview (diagonal) More...
 
void eye ()
 
void fill (const eT val)
 
bool is_vec () const
 
void ones ()
 
template<typename T1 >
void operator%= (const Base< eT, T1 > &x)
 
void operator%= (const subview &x)
 
eT & operator() (const uword i)
 
eT operator() (const uword i) const
 
eT & operator() (const uword in_row, const uword in_col)
 
eT operator() (const uword in_row, const uword in_col) const
 
subview_row< eT > operator() (const uword row_num, const span &col_span)
 
const subview_row< eT > operator() (const uword row_num, const span &col_span) const
 
subview_col< eT > operator() (const span &row_span, const uword col_num)
 
const subview_col< eT > operator() (const span &row_span, const uword col_num) const
 
subview< eT > operator() (const span &row_span, const span &col_span)
 
const subview< eT > operator() (const span &row_span, const span &col_span) const
 
void operator*= (const eT val)
 
void operator+= (const eT val)
 
template<typename T1 >
void operator+= (const Base< eT, T1 > &x)
 
void operator+= (const subview &x)
 
void operator-= (const eT val)
 
template<typename T1 >
void operator-= (const Base< eT, T1 > &x)
 
void operator-= (const subview &x)
 
void operator/= (const eT val)
 
template<typename T1 >
void operator/= (const Base< eT, T1 > &x)
 
void operator/= (const subview &x)
 
template<typename T1 >
void operator= (const Base< eT, T1 > &x)
 
void operator= (const subview &x)
 x.submat(...) = y.submat(...) More...
 
eT & operator[] (const uword i)
 
eT operator[] (const uword i) const
 
subview_row< eT > row (const uword row_num)
 creation of subview (row vector) More...
 
const subview_row< eT > row (const uword row_num) const
 creation of subview (row vector) More...
 
subview< eT > rows (const uword in_row1, const uword in_row2)
 creation of subview (submatrix comprised of specified row vectors) More...
 
const subview< eT > rows (const uword in_row1, const uword in_row2) const
 creation of subview (submatrix comprised of specified row vectors) More...
 
subview< eT > submat (const uword in_row1, const uword in_col1, const uword in_row2, const uword in_col2)
 creation of subview (submatrix) More...
 
const subview< eT > submat (const uword in_row1, const uword in_col1, const uword in_row2, const uword in_col2) const
 creation of subview (generic submatrix) More...
 
subview< eT > submat (const span &row_span, const span &col_span)
 creation of subview (submatrix) More...
 
const subview< eT > submat (const span &row_span, const span &col_span) const
 creation of subview (generic submatrix) More...
 
void swap_cols (const uword in_col1, const uword in_col2)
 
void swap_rows (const uword in_row1, const uword in_row2)
 
Col< eT > unsafe_col (const uword col_num)
 
const Col< eT > unsafe_col (const uword col_num) const
 
void zeros ()
 
 ~subview ()
 
- Public Member Functions inherited from Base< eT, subview< eT > >
arma_inline const subview< eT > & get_ref () const
 
void print (const std::string extra_text="") const
 
void print (std::ostream &user_stream, const std::string extra_text="") const
 
arma_deprecated void print_trans (const std::string extra_text="") const
 
arma_deprecated void print_trans (std::ostream &user_stream, const std::string extra_text="") const
 
void raw_print (const std::string extra_text="") const
 
void raw_print (std::ostream &user_stream, const std::string extra_text="") const
 
arma_deprecated void raw_print_trans (const std::string extra_text="") const
 
arma_deprecated void raw_print_trans (std::ostream &user_stream, const std::string extra_text="") const
 
arma_inline const Op< subview< eT >, op_stransst () const
 
arma_inline const Op< subview< eT >, op_htranst () const
 

Static Public Member Functions

static void div_inplace (Mat< eT > &out, const subview &in)
 X /= Y.submat(...) More...
 
static void extract (Mat< eT > &out, const subview &in)
 X = Y.submat(...) More...
 
static void minus_inplace (Mat< eT > &out, const subview &in)
 X -= Y.submat(...) More...
 
static void plus_inplace (Mat< eT > &out, const subview &in)
 X += Y.submat(...) More...
 
static void schur_inplace (Mat< eT > &out, const subview &in)
 X %= Y.submat(...) More...
 

Public Attributes

const uword aux_col1
 
const uword aux_row1
 
arma_aligned const Mat< eT > & m
 
const uword n_cols
 
const uword n_elem
 
const uword n_rows
 

Protected Member Functions

arma_inline subview (const Mat< eT > &in_m, const uword in_row1, const uword in_col1, const uword in_n_rows, const uword in_n_cols)
 
arma_inline subview (Mat< eT > &in_m, const uword in_row1, const uword in_col1, const uword in_n_rows, const uword in_n_cols)
 

Protected Attributes

arma_aligned Mat< eT > * m_ptr
 

Private Member Functions

 subview ()
 

Friends

class Mat< eT >
 

Detailed Description

template<typename eT>
class subview< 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 25 of file forward_bones.hpp.

Member Typedef Documentation

template<typename eT>
typedef eT subview< eT >::elem_type

Definition at line 29 of file subview_bones.hpp.

template<typename eT>
typedef get_pod_type<elem_type>::result subview< eT >::pod_type

Definition at line 30 of file subview_bones.hpp.

Constructor & Destructor Documentation

template<typename eT>
subview< eT >::subview ( )
private

Friends And Related Function Documentation

template<typename eT>
friend class Mat< eT >
friend

Definition at line 166 of file subview_bones.hpp.

Member Data Documentation

template<typename eT>
const uword subview< eT >::aux_col1

Definition at line 33 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::aux_row1

Definition at line 32 of file subview_bones.hpp.

template<typename eT>
arma_aligned const Mat<eT>& subview< eT >::m

Definition at line 24 of file subview_bones.hpp.

template<typename eT>
arma_aligned Mat<eT>* subview< eT >::m_ptr
protected

Definition at line 25 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::n_cols

Definition at line 36 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::n_elem

Definition at line 37 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::n_rows

Definition at line 35 of file subview_bones.hpp.


The documentation for this class was generated from the following files:


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:32:01