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

Class for storing data required to extract and set the diagonals of a matrix. More...

#include <diagview_bones.hpp>

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

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 More...
 
template<typename T1 >
void operator= (const Base< eT, T1 > &x)
 set a diagonal of our matrix using data from a foreign object More...
 
arma_inline eT & operator[] (const uword i)
 
arma_inline eT operator[] (const uword i) const
 
void zeros ()
 
 ~diagview ()
 
- Public Member Functions inherited from Base< eT, diagview< eT > >
arma_inline const diagview< 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< diagview< eT >, op_stransst () const
 
arma_inline const Op< diagview< eT >, op_htranst () const
 

Static Public Member Functions

static void div_inplace (Mat< eT > &out, const diagview &in)
 X /= Y.diag() More...
 
static void extract (Mat< eT > &out, const diagview &in)
 extract a diagonal and store it as a column vector More...
 
static void minus_inplace (Mat< eT > &out, const diagview &in)
 X -= Y.diag() More...
 
static void plus_inplace (Mat< eT > &out, const diagview &in)
 X += Y.diag() More...
 
static void schur_inplace (Mat< eT > &out, const diagview &in)
 X %= Y.diag() More...
 

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 >
 

Detailed Description

template<typename eT>
class diagview< eT >

Class for storing data required to extract and set the diagonals of a matrix.

Definition at line 20 of file diagview_bones.hpp.

Member Typedef Documentation

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

Definition at line 27 of file diagview_bones.hpp.

template<typename eT>
typedef get_pod_type<eT>::result diagview< eT >::pod_type

Definition at line 28 of file diagview_bones.hpp.

Constructor & Destructor Documentation

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

Friends And Related Function Documentation

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

Definition at line 93 of file diagview_bones.hpp.

template<typename eT>
friend class subview< eT >
friend

Definition at line 94 of file diagview_bones.hpp.

Member Data Documentation

template<typename eT>
const uword diagview< eT >::col_offset

Definition at line 31 of file diagview_bones.hpp.

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

Definition at line 22 of file diagview_bones.hpp.

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

Definition at line 23 of file diagview_bones.hpp.

template<typename eT>
const uword diagview< eT >::n_cols = 1
static

Definition at line 36 of file diagview_bones.hpp.

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

Definition at line 34 of file diagview_bones.hpp.

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

Definition at line 33 of file diagview_bones.hpp.

template<typename eT>
const uword diagview< eT >::row_offset

Definition at line 30 of file diagview_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:00