Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends

diagview< eT > Class Template Reference
[Diagview]

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

#include <diagview_proto.hpp>

Inheritance diagram for diagview< eT >:
Base< eT, diagview< eT > >

List of all members.

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 >

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 23 of file diagview_proto.hpp.


Member Typedef Documentation

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

Definition at line 30 of file diagview_proto.hpp.

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

Definition at line 31 of file diagview_proto.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 83 of file diagview_proto.hpp.


Member Data Documentation

template<typename eT>
Mat<eT>* diagview< eT >::m_ptr [protected]
template<typename eT>
const u32 diagview< eT >::n_cols

Definition at line 37 of file diagview_proto.hpp.