aglowav2::Matrix< F > Class Template Reference

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

#include <element.hh>

Public Member Functions

F * destination () const
 
 Matrix (uint n, uint m, F *val, bool row)
 Constructor. More...
 
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 95 of file element.hh.

Constructor & Destructor Documentation

◆ Matrix()

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 103 of file element.hh.

Member Function Documentation

◆ destination()

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

Definition at line 107 of file element.hh.

◆ ncol()

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

Definition at line 109 of file element.hh.

◆ nrow()

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

Definition at line 108 of file element.hh.

◆ roworder()

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

Definition at line 110 of file element.hh.

◆ source()

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

Definition at line 106 of file element.hh.

◆ transpose()

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

Definition at line 111 of file element.hh.

Member Data Documentation

◆ m_

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

Definition at line 117 of file element.hh.

◆ n_

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

Definition at line 116 of file element.hh.

◆ row_

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

Definition at line 119 of file element.hh.

◆ val_

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

Definition at line 118 of file element.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich