Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
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]

List of all members.

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

Static Public Member Functions

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

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): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:07