Public Types | Public Member Functions | Public Attributes

Proxy< Mat< eT > > Class Template Reference
[Proxy]

#include <Proxy.hpp>

List of all members.

Public Types

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

Public Member Functions

 Proxy (const Mat< eT > &A)
 Proxy (const u32 in_n_rows, const u32 in_n_cols)
arma_inline elem_type operator[] (const u32 i) const
arma_inline elem_type at (const u32 row, const u32 col) const

Public Attributes

const Mat< eT > & Q
const u32 n_rows
const u32 n_cols
const u32 n_elem

Detailed Description

template<typename eT>
class Proxy< Mat< eT > >

Definition at line 35 of file Proxy.hpp.


Member Typedef Documentation

template<typename eT >
typedef eT Proxy< Mat< eT > >::elem_type

Definition at line 39 of file Proxy.hpp.

template<typename eT >
typedef get_pod_type<elem_type>::result Proxy< Mat< eT > >::pod_type

Definition at line 40 of file Proxy.hpp.

template<typename eT >
typedef Mat<eT> Proxy< Mat< eT > >::stored_type

Definition at line 41 of file Proxy.hpp.


Constructor & Destructor Documentation

template<typename eT >
Proxy< Mat< eT > >::Proxy ( const Mat< eT > &  A  )  [inline, explicit]

Definition at line 49 of file Proxy.hpp.

    : Q(A)
    , n_rows(A.n_rows)
    , n_cols(A.n_cols)
    , n_elem(A.n_elem)
    {
    arma_extra_debug_sigprint();
    }

template<typename eT >
Proxy< Mat< eT > >::Proxy ( const u32  in_n_rows,
const u32  in_n_cols 
) [inline, explicit]

Definition at line 58 of file Proxy.hpp.

    : Q(Q)
    , n_rows(in_n_rows)
    , n_cols(in_n_cols)
    , n_elem(in_n_rows*in_n_cols)
    {
    arma_extra_debug_sigprint();
    }


Member Function Documentation

template<typename eT >
arma_inline elem_type Proxy< Mat< eT > >::operator[] ( const u32  i  )  const [inline]

Definition at line 67 of file Proxy.hpp.

{ return Q[i];           }

template<typename eT >
arma_inline elem_type Proxy< Mat< eT > >::at ( const u32  row,
const u32  col 
) const [inline]

Definition at line 68 of file Proxy.hpp.

{ return Q.at(row, col); }


Member Data Documentation

template<typename eT >
const Mat<eT>& Proxy< Mat< eT > >::Q

Definition at line 43 of file Proxy.hpp.

template<typename eT >
const u32 Proxy< Mat< eT > >::n_rows

Definition at line 45 of file Proxy.hpp.

template<typename eT >
const u32 Proxy< Mat< eT > >::n_cols

Definition at line 46 of file Proxy.hpp.

template<typename eT >
const u32 Proxy< Mat< eT > >::n_elem

Definition at line 47 of file Proxy.hpp.