Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Private Attributes
aglowav2::Matrix< F > Class Template Reference

Matrix class to convert an array to a matrix without copying. More...

#include <element.hh>

List of all members.

Public Member Functions

F * destination () const
 Matrix (uint n, uint m, F *val, bool row)
 Constructor.
uint ncol () const
uint nrow () const
bool roworder () const
const F * source () const
void transpose ()

Private Attributes

uint m_
uint n_
bool row_
F * val_

Detailed Description

template<class F = concepts::Real>
class aglowav2::Matrix< F >

Matrix class to convert an array to a matrix without copying.

(used for multiplication with M000).

Parameters:
FField (Real or Cmplx)

Definition at line 93 of file element.hh.


Constructor & Destructor Documentation

template<class F = concepts::Real>
aglowav2::Matrix< F >::Matrix ( uint  n,
uint  m,
F *  val,
bool  row 
) [inline]

Constructor.

Parameters:
nNumber of rows
mNumber of columns
valMatrix entries
rowtrue: entries row wise, false: entries column wise

Definition at line 101 of file element.hh.


Member Function Documentation

template<class F = concepts::Real>
F* aglowav2::Matrix< F >::destination ( ) const [inline]

Definition at line 105 of file element.hh.

template<class F = concepts::Real>
uint aglowav2::Matrix< F >::ncol ( ) const [inline]

Definition at line 107 of file element.hh.

template<class F = concepts::Real>
uint aglowav2::Matrix< F >::nrow ( ) const [inline]

Definition at line 106 of file element.hh.

template<class F = concepts::Real>
bool aglowav2::Matrix< F >::roworder ( ) const [inline]

Definition at line 108 of file element.hh.

template<class F = concepts::Real>
const F* aglowav2::Matrix< F >::source ( ) const [inline]

Definition at line 104 of file element.hh.

template<class F = concepts::Real>
void aglowav2::Matrix< F >::transpose ( ) [inline]

Definition at line 109 of file element.hh.


Member Data Documentation

template<class F = concepts::Real>
uint aglowav2::Matrix< F >::m_ [private]

Definition at line 115 of file element.hh.

template<class F = concepts::Real>
uint aglowav2::Matrix< F >::n_ [private]

Definition at line 114 of file element.hh.

template<class F = concepts::Real>
bool aglowav2::Matrix< F >::row_ [private]

Definition at line 117 of file element.hh.

template<class F = concepts::Real>
F* aglowav2::Matrix< F >::val_ [private]

Definition at line 116 of file element.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)