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
< elem_type >::pod_type 
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
void fill (const eT val)
void zeros ()

Static Public Member Functions

static void extract (Mat< eT > &out, const diagview &in)
 extract a diagonal and store it as a column vector

Public Attributes

const Mat< eT > & m
const u32 row_offset
const u32 col_offset
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 22 of file diagview_proto.hpp.


Member Typedef Documentation

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

Definition at line 29 of file diagview_proto.hpp.

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

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


Member Data Documentation

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

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

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

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

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