Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | Friends
qucs::tmatrix< nr_type_t > Class Template Reference

#include <tmatrix.h>

Public Member Functions

 tmatrix ()
 
 tmatrix (int)
 
 tmatrix (int, int)
 
 tmatrix (const tmatrix &)
 
const tmatrixoperator= (const tmatrix &)
 
 ~tmatrix ()
 
nr_type_t get (int, int)
 
void set (int, int, nr_type_t)
 
void set (nr_type_t)
 
int getCols (void)
 
int getRows (void)
 
nr_type_t * getData (void)
 
tvector< nr_type_t > getRow (int)
 
void setRow (int, tvector< nr_type_t >)
 
tvector< nr_type_t > getCol (int)
 
void setCol (int, tvector< nr_type_t >)
 
void exchangeRows (int, int)
 
void exchangeCols (int, int)
 
void transpose (void)
 
int isFinite (void)
 
void print (bool realonly=false)
 
tmatrix operator+= (tmatrix)
 
tmatrix operator-= (tmatrix)
 
nr_type_t operator() (int r, int c) const
 
nr_type_t & operator() (int r, int c)
 

Private Attributes

int cols
 
int rows
 
nr_type_t * data
 

Friends

tmatrix inverse (tmatrix)
 
tmatrix teye (int)
 
tmatrix operator* (tmatrix, tmatrix)
 
tvector< nr_type_t > operator* (tmatrix, tvector< nr_type_t >)
 
tvector< nr_type_t > operator* (tvector< nr_type_t >, tmatrix)
 

Detailed Description

template<class nr_type_t>
class qucs::tmatrix< nr_type_t >

Definition at line 33 of file tmatrix.h.

Constructor & Destructor Documentation

template<class nr_type_t >
qucs::tmatrix< nr_type_t >::tmatrix ( )

Definition at line 42 of file tmatrix.cpp.

template<class nr_type_t >
qucs::tmatrix< nr_type_t >::tmatrix ( int  s)

Definition at line 51 of file tmatrix.cpp.

template<class nr_type_t >
qucs::tmatrix< nr_type_t >::tmatrix ( int  r,
int  c 
)

Definition at line 63 of file tmatrix.cpp.

template<class nr_type_t >
qucs::tmatrix< nr_type_t >::tmatrix ( const tmatrix< nr_type_t > &  m)

Definition at line 76 of file tmatrix.cpp.

template<class nr_type_t >
qucs::tmatrix< nr_type_t >::~tmatrix ( )

Definition at line 107 of file tmatrix.cpp.

Member Function Documentation

template<class nr_type_t >
void qucs::tmatrix< nr_type_t >::exchangeCols ( int  c1,
int  c2 
)

Definition at line 185 of file tmatrix.cpp.

template<class nr_type_t >
void qucs::tmatrix< nr_type_t >::exchangeRows ( int  r1,
int  r2 
)

Definition at line 173 of file tmatrix.cpp.

template<class nr_type_t >
nr_type_t qucs::tmatrix< nr_type_t >::get ( int  r,
int  c 
)

Definition at line 113 of file tmatrix.cpp.

template<class nr_type_t >
tvector< nr_type_t > qucs::tmatrix< nr_type_t >::getCol ( int  c)

Definition at line 153 of file tmatrix.cpp.

template<class nr_type_t>
int qucs::tmatrix< nr_type_t >::getCols ( void  )
inline

Definition at line 60 of file tmatrix.h.

template<class nr_type_t>
nr_type_t* qucs::tmatrix< nr_type_t >::getData ( void  )
inline

Definition at line 62 of file tmatrix.h.

template<class nr_type_t >
tvector< nr_type_t > qucs::tmatrix< nr_type_t >::getRow ( int  r)

Definition at line 133 of file tmatrix.cpp.

template<class nr_type_t>
int qucs::tmatrix< nr_type_t >::getRows ( void  )
inline

Definition at line 61 of file tmatrix.h.

template<class nr_type_t >
int qucs::tmatrix< nr_type_t >::isFinite ( void  )

Definition at line 333 of file tmatrix.cpp.

template<class nr_type_t>
nr_type_t qucs::tmatrix< nr_type_t >::operator() ( int  r,
int  c 
) const
inline

Definition at line 87 of file tmatrix.h.

template<class nr_type_t>
nr_type_t& qucs::tmatrix< nr_type_t >::operator() ( int  r,
int  c 
)
inline

Definition at line 90 of file tmatrix.h.

template<class nr_type_t >
tmatrix< nr_type_t > qucs::tmatrix< nr_type_t >::operator+= ( tmatrix< nr_type_t >  a)

Definition at line 255 of file tmatrix.cpp.

template<class nr_type_t >
tmatrix< nr_type_t > qucs::tmatrix< nr_type_t >::operator-= ( tmatrix< nr_type_t >  a)

Definition at line 265 of file tmatrix.cpp.

template<class nr_type_t >
const tmatrix< nr_type_t > & qucs::tmatrix< nr_type_t >::operator= ( const tmatrix< nr_type_t > &  m)

Definition at line 92 of file tmatrix.cpp.

template<class nr_type_t>
void qucs::tmatrix< nr_type_t >::print ( bool  realonly = false)
template<class nr_type_t>
void qucs::tmatrix< nr_type_t >::set ( int  r,
int  c,
nr_type_t  z 
)

Definition at line 120 of file tmatrix.cpp.

template<class nr_type_t>
void qucs::tmatrix< nr_type_t >::set ( nr_type_t  z)

Definition at line 127 of file tmatrix.cpp.

template<class nr_type_t>
void qucs::tmatrix< nr_type_t >::setCol ( int  c,
tvector< nr_type_t >  v 
)

Definition at line 164 of file tmatrix.cpp.

template<class nr_type_t>
void qucs::tmatrix< nr_type_t >::setRow ( int  r,
tvector< nr_type_t >  v 
)

Definition at line 144 of file tmatrix.cpp.

template<class nr_type_t >
void qucs::tmatrix< nr_type_t >::transpose ( void  )

Definition at line 321 of file tmatrix.cpp.

Friends And Related Function Documentation

template<class nr_type_t>
tmatrix inverse ( tmatrix< nr_type_t >  )
friend
template<class nr_type_t>
tmatrix operator* ( tmatrix< nr_type_t >  ,
tmatrix< nr_type_t >   
)
friend
template<class nr_type_t>
tvector<nr_type_t> operator* ( tmatrix< nr_type_t >  ,
tvector< nr_type_t >   
)
friend
template<class nr_type_t>
tvector<nr_type_t> operator* ( tvector< nr_type_t >  ,
tmatrix< nr_type_t >   
)
friend
template<class nr_type_t>
tmatrix teye ( int  )
friend

Definition at line 247 of file tmatrix.cpp.

Field Documentation

template<class nr_type_t>
int qucs::tmatrix< nr_type_t >::cols
private

Definition at line 95 of file tmatrix.h.

template<class nr_type_t>
nr_type_t* qucs::tmatrix< nr_type_t >::data
private

Definition at line 97 of file tmatrix.h.

template<class nr_type_t>
int qucs::tmatrix< nr_type_t >::rows
private

Definition at line 96 of file tmatrix.h.


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