TBCI Numerical high perf. C++ Library  2.8.0
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
F_Matrix< T > Class Template Reference

#include <bvector.h>

Inheritance diagram for F_Matrix< T >:
Inheritance graph
[legend]
Collaboration diagram for F_Matrix< T >:
Collaboration graph
[legend]

Public Types

typedef T value_type
 
typedef T element_type
 
typedef T aligned_value_type TALIGN (MIN_ALIGN2)
 
- Public Types inherited from F_TMatrix< T >
typedef T value_type
 
typedef T element_type
 
typedef T aligned_value_type TALIGN (MIN_ALIGN2)
 

Public Member Functions

 F_Matrix (const unsigned d=0)
 
 F_Matrix (const unsigned r, const unsigned c)
 
 F_Matrix (const T &v, const unsigned r, const unsigned c)
 
 F_Matrix (const F_Matrix< T > &m)
 
 F_Matrix (const CSCMatrix< T > &m)
 
 F_Matrix (const F_TMatrix< T > &tm)
 
 F_Matrix (F_TSMatrix< T > &ts)
 
 ~F_Matrix ()
 
 F_Matrix (const Matrix< T > &m)
 
 operator TMatrix< T > () const
 
Toperator() (const unsigned int, const unsigned int) const
 
Tget_fortran_matrix () const
 
const Tget (const unsigned r, const unsigned c) const
 
unsigned int columns () const
 
unsigned int rows () const
 
unsigned long size () const
 
TVector< Tget_row (const unsigned int) const
 
TVector< Tget_col (const unsigned int) const
 
void set_row (const Vector< T > &, const unsigned int)
 
void set_col (const Vector< T > &, const unsigned int)
 
void setval (const T val, const unsigned int r, const unsigned int c)
 
F_Matrix< T > & operator= (const F_Matrix< T > &m)
 
F_Matrix< T > & operator= (const F_TMatrix< T > &tm)
 
F_Matrix< T > & operator= (F_TSMatrix< T > ts)
 
F_Matrix< T > & operator= (const T &v)
 
F_Matrix< T > & resize (const unsigned r, const unsigned c)
 
F_Matrix< T > & resize (const unsigned d)
 
F_Matrix< T > & resize (const T &v, const unsigned r, const unsigned c)
 
F_Matrix< T > & fill (const T &v=0)
 
F_Matrix< T > & setunit (const T &f=1)
 
F_Matrix< T > & clear ()
 
F_Matrix< T > & operator+= (const F_Matrix< T > &a)
 
F_Matrix< T > & operator-= (const F_Matrix< T > &a)
 
F_Matrix< T > & operator+= (F_TMatrix< T > a)
 
F_Matrix< T > & operator-= (F_TMatrix< T > a)
 
F_Matrix< T > & operator+= (const T &a)
 
F_Matrix< T > & operator-= (const T &a)
 
F_Matrix< T > & operator*= (const T &a)
 
F_Matrix< T > & operator/= (const T &a)
 
F_TMatrix< Toperator- () const
 
F_TMatrix< Toperator+ (const F_Matrix< T > &) const
 
F_TMatrix< Toperator- (const F_Matrix< T > &) const
 
F_TMatrix< Toperator* (const F_Matrix< T > &) const
 
F_TMatrix< Toperator+ (F_TMatrix< T >) const
 
F_TMatrix< Toperator- (F_TMatrix< T >) const
 
F_TMatrix< Toperator* (F_TMatrix< T >) const
 
F_TMatrix< Toperator+ (F_TSMatrix< T >) const
 
F_TMatrix< Toperator- (F_TSMatrix< T >) const
 
F_TMatrix< Toperator* (F_TSMatrix< T >) const
 
F_TMatrix< Toperator+ (const T &) const
 
F_TMatrix< Toperator- (const T &) const
 
F_TSMatrix< Toperator* (const T &) const
 
F_TSMatrix< Toperator/ (const T &) const
 
TVector< Toperator* (const Vector< T > &) const
 
TVector< Toperator* (TVector< T > &) const
 
bool operator== (const F_Matrix< T > &m) const
 
bool operator!= (const F_Matrix< T > &m) const
 
bool operator== (F_TMatrix< T > &tm) const
 
bool operator!= (F_TMatrix< T > &tm) const
 
bool operator== (F_TSMatrix< T > &) const
 
bool operator!= (F_TSMatrix< T > &ts) const
 
F_TMatrix< Therm () const
 
F_TMatrix< Tconj () const
 
F_TMatrix< Ttrans () const
 
double fabs () const
 
- Public Member Functions inherited from F_TMatrix< T >
 F_TMatrix (const unsigned=0)
 
 F_TMatrix (const unsigned, const unsigned)
 
 F_TMatrix (const T &, const unsigned, const unsigned)
 
 F_TMatrix (const Vector< T > &, const enum rowcolvec=colvec)
 
 F_TMatrix (const F_TMatrix< T > &)
 
 F_TMatrix (F_TSMatrix< T > &)
 
 F_TMatrix (const F_Matrix< T > &)
 
void destroy ()
 
 ~F_TMatrix ()
 
 operator TMatrix< T > ()
 
F_TMatrix< T > & operator= (const F_Matrix< T > &)
 
F_TMatrix< T > & operator= (const F_TMatrix< T > &)
 
F_TMatrix< T > & operator= (F_TSMatrix< T >)
 
F_TMatrix< T > & operator= (const T &)
 
F_TMatrix< T > & alias (const F_Matrix< T > &m)
 
F_TMatrix< T > & operator+= (F_TMatrix< T >)
 
F_TMatrix< T > & operator+= (const F_Matrix< T > &)
 
F_TMatrix< T > & operator+= (const T &)
 
F_TMatrix< T > & operator-= (F_TMatrix< T >)
 
F_TMatrix< T > & operator-= (const F_Matrix< T > &)
 
F_TMatrix< T > & operator-= (const T &)
 
F_TSMatrix< Toperator*= (const T &)
 
F_TSMatrix< Toperator/= (const T &)
 
F_TMatrix< T > & operator- ()
 
F_TMatrix< T > & herm ()
 
F_TMatrix< T > & conj ()
 
F_TMatrix< T > & trans ()
 
F_TMatrix< T > & operator+ (F_TMatrix< T >)
 
F_TMatrix< T > & operator+ (F_TSMatrix< T >)
 
F_TMatrix< T > & operator+ (const F_Matrix< T > &)
 
F_TMatrix< T > & operator+ (const T &)
 
F_TMatrix< T > & operator- (F_TMatrix< T >)
 
F_TMatrix< T > & operator- (F_TSMatrix< T >)
 
F_TMatrix< T > & operator- (const F_Matrix< T > &)
 
F_TMatrix< T > & operator- (const T &)
 
F_TSMatrix< Toperator* (const T &)
 
F_TSMatrix< Toperator/ (const T &)
 
F_TMatrix< Toperator* (const F_Matrix< T > &)
 
F_TMatrix< Toperator* (F_TMatrix< T >)
 
F_TMatrix< Toperator* (F_TSMatrix< T >)
 
TVector< Toperator* (const Vector< T > &v)
 
TVector< Toperator* (TVector< T > &tv)
 
Toperator() (const unsigned int, const unsigned int) const
 
Tget_fortran_matrix () const
 
const Tget (const unsigned r, const unsigned c) const
 
bool operator== (const F_Matrix< T > &m)
 
bool operator!= (const F_Matrix< T > &m)
 
bool operator== (F_TMatrix< T > tm)
 
bool operator!= (F_TMatrix< T > tm)
 
bool operator== (F_TSMatrix< T >)
 
bool operator!= (F_TSMatrix< T > ts)
 
unsigned int columns () const
 
unsigned int rows () const
 
unsigned long size () const
 
TVector< Tget_row (const unsigned int) const
 
TVector< Tget_col (const unsigned int) const
 
void set_row (const Vector< T > &, const unsigned int)
 
void set_col (const Vector< T > &, const unsigned int)
 
void setval (const T val, const unsigned int r, const unsigned int c)
 
Tsetval (const unsigned int r, const unsigned int c)
 
F_TMatrix< T > & resize (const unsigned int, const unsigned int)
 
F_TMatrix< T > & resize (const unsigned int d)
 
F_TMatrix< T > & resize (const T &, const unsigned int, const unsigned int)
 
F_TMatrix< T > & fill (const T &=0)
 
F_TMatrix< T > & clear ()
 
F_TMatrix< T > & setunit (const T &=1)
 
F_TMatrix< T > & swap (F_TMatrix< T > &)
 
F_TMatrix< Ttransposed_copy () const
 Inefficient! Use transMult if possible. More...
 
F_TMatrix< T > & transpose ()
 
double fabs () const
 
T trace () const
 
- Public Member Functions inherited from Matrix_Sig< T >
 Matrix_Sig ()
 
 ~Matrix_Sig ()
 
tbci_traits< T >::const_refval_type operator() (const unsigned, const unsigned) const
 ro access More...
 
Toperator() (const unsigned, const unsigned)
 rw access More...
 
Matrix_Sig< T > & fill (const T &)
 
Matrix_Sig< T > & setunit (const T &=(T) 1)
 
Matrix_Sig< T > & clear ()
 
TVector< Toperator* (const Vector_Sig< T > &) const
 
TVector< TtransMult (const Vector_Sig< T > &) const
 
unsigned int rows () const
 
unsigned int columns () const
 

Static Public Member Functions

static const char * mat_info ()
 
- Static Public Member Functions inherited from F_TMatrix< T >
static const char * mat_info ()
 
- Static Public Member Functions inherited from Matrix_Sig< T >
static const char * mat_info ()
 

Friends

class F_TSMatrix< T >
 
STD__ ostream & operator<< FGD (STD__ ostream &, const F_Matrix< T > &)
 
STD__ istream & operator>> FGD (STD__ istream &, F_Matrix< T > &)
 

Additional Inherited Members

- Protected Types inherited from F_TMatrix< T >
typedef T mat_t
 
- Protected Member Functions inherited from F_TMatrix< T >
int set_ptrs ()
 
- Protected Attributes inherited from F_TMatrix< T >
unsigned long dim
 
unsigned int col
 
unsigned int row
 
T ** mat
 Fortran storage layout: mat[col][row]. More...
 
Tvec
 
Tendvec
 

Detailed Description

template<typename T>
class F_Matrix< T >

Definition at line 51 of file bvector.h.

Member Typedef Documentation

template<typename T>
typedef T F_Matrix< T >::element_type

Definition at line 1177 of file f_matrix.h.

template<typename T>
typedef T aligned_value_type F_Matrix< T >::TALIGN(MIN_ALIGN2)

Definition at line 1178 of file f_matrix.h.

template<typename T>
typedef T F_Matrix< T >::value_type

Definition at line 1176 of file f_matrix.h.

Constructor & Destructor Documentation

template<typename T>
F_Matrix< T >::F_Matrix ( const unsigned  d = 0)
inlineexplicit

Definition at line 1183 of file f_matrix.h.

template<typename T>
F_Matrix< T >::F_Matrix ( const unsigned  r,
const unsigned  c 
)
inline

Definition at line 1184 of file f_matrix.h.

template<typename T>
F_Matrix< T >::F_Matrix ( const T v,
const unsigned  r,
const unsigned  c 
)
inline

Definition at line 1185 of file f_matrix.h.

template<typename T>
F_Matrix< T >::F_Matrix ( const F_Matrix< T > &  m)
inline

Definition at line 1190 of file f_matrix.h.

template<typename T >
F_Matrix< T >::F_Matrix ( const CSCMatrix< T > &  m)
inline

Definition at line 1322 of file f_matrix.h.

References c, CSCMatrix< T >::columns(), and CSCMatrix< T >::rows().

template<typename T>
F_Matrix< T >::F_Matrix ( const F_TMatrix< T > &  tm)
inline

Definition at line 1194 of file f_matrix.h.

template<typename T>
F_Matrix< T >::F_Matrix ( F_TSMatrix< T > &  ts)
inline

Definition at line 1195 of file f_matrix.h.

template<typename T>
F_Matrix< T >::~F_Matrix ( )
inline

Definition at line 1197 of file f_matrix.h.

References F_TMatrix< T >::destroy().

template<typename T >
F_Matrix< T >::F_Matrix ( const Matrix< T > &  m)

Definition at line 1331 of file f_matrix.h.

References c, F_TMatrix< T >::col, F_TMatrix< T >::row, and F_Matrix< T >::setval().

Member Function Documentation

template<typename T>
F_Matrix<T>& F_Matrix< T >::clear ( )
inline

Definition at line 1244 of file f_matrix.h.

References F_TMatrix< T >::clear().

template<typename T>
unsigned int F_Matrix< T >::columns ( ) const
inline
template<typename T>
F_TMatrix<T> F_Matrix< T >::conj ( ) const
inline

Definition at line 1312 of file f_matrix.h.

template<typename T >
double F_Matrix< T >::fabs ( ) const
template<typename T>
F_Matrix<T>& F_Matrix< T >::fill ( const T v = 0)
inline

Definition at line 1240 of file f_matrix.h.

References F_TMatrix< T >::fill(), and v.

template<typename T>
const T& F_Matrix< T >::get ( const unsigned  r,
const unsigned  c 
) const
inline

Definition at line 1210 of file f_matrix.h.

References c, and F_TMatrix< T >::mat.

template<typename T >
TVector< T > F_Matrix< T >::get_col ( const unsigned int  c) const
inline

Definition at line 1606 of file f_matrix.h.

References F_TMatrix< T >::get_col().

Referenced by eig().

template<typename T>
T* F_Matrix< T >::get_fortran_matrix ( ) const
inline

Definition at line 1209 of file f_matrix.h.

References F_TMatrix< T >::vec.

Referenced by eig(), inv(), and lu_solve().

template<typename T >
TVector< T > F_Matrix< T >::get_row ( const unsigned int  r) const
inline

Definition at line 1612 of file f_matrix.h.

References F_TMatrix< T >::get_row().

template<typename T>
F_TMatrix<T> F_Matrix< T >::herm ( ) const
inline

Definition at line 1311 of file f_matrix.h.

template<typename T>
static const char* F_Matrix< T >::mat_info ( )
inlinestatic

Definition at line 1204 of file f_matrix.h.

template<typename T >
F_Matrix< T >::operator TMatrix< T > ( ) const

Definition at line 1340 of file f_matrix.h.

References c, F_TSMatrix< T >::col, F_TSMatrix< T >::row, and TMatrix< T >::setval().

template<typename T>
bool F_Matrix< T >::operator!= ( const F_Matrix< T > &  m) const
inline

Definition at line 1292 of file f_matrix.h.

template<typename T>
bool F_Matrix< T >::operator!= ( F_TMatrix< T > &  tm) const
inline

Definition at line 1297 of file f_matrix.h.

template<typename T>
bool F_Matrix< T >::operator!= ( F_TSMatrix< T > &  ts) const
inline

Definition at line 1301 of file f_matrix.h.

References ts.

template<typename T >
T & F_Matrix< T >::operator() ( const unsigned int  r,
const unsigned int  c 
) const
inline

Definition at line 1624 of file f_matrix.h.

References BCHK, c, F_TSMatrix< T >::col, index, F_TSMatrix< T >::mat, and F_TSMatrix< T >::row.

Referenced by F_Matrix< T >::setval().

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator* ( const F_Matrix< T > &  a) const
template<typename T >
F_TMatrix< T > F_Matrix< T >::operator* ( F_TMatrix< T a) const
inline

Definition at line 1498 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator* ( F_TSMatrix< T a) const
template<typename T >
F_TSMatrix< T > F_Matrix< T >::operator* ( const T a) const
inline

Definition at line 1409 of file f_matrix.h.

References a.

template<typename T >
TVector< T > F_Matrix< T >::operator* ( const Vector< T > &  v) const

Definition at line 1568 of file f_matrix.h.

References c, F_TSMatrix< T >::col, REGISTER, F_TSMatrix< T >::row, TVector< T >::set(), T, and v.

template<typename T >
TVector< T > F_Matrix< T >::operator* ( TVector< T > &  c) const
inline

Definition at line 1581 of file f_matrix.h.

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator*= ( const T a)
inline

Definition at line 1262 of file f_matrix.h.

References F_TMatrix< T >::operator*=().

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator+ ( const F_Matrix< T > &  a) const
inline

Definition at line 1430 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator+ ( F_TMatrix< T a) const
inline

Definition at line 1444 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator+ ( F_TSMatrix< T ts) const
inline

Definition at line 1458 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator+ ( const T a) const
inline

Definition at line 1405 of file f_matrix.h.

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator+= ( const F_Matrix< T > &  a)
inline

Definition at line 1250 of file f_matrix.h.

References F_TMatrix< T >::operator+=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator+= ( F_TMatrix< T a)
inline

Definition at line 1254 of file f_matrix.h.

References F_TMatrix< T >::operator+=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator+= ( const T a)
inline

Definition at line 1258 of file f_matrix.h.

References F_TMatrix< T >::operator+=().

template<typename T>
F_TMatrix<T> F_Matrix< T >::operator- ( ) const
inline

Definition at line 1269 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator- ( const F_Matrix< T > &  a) const
inline

Definition at line 1431 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator- ( F_TMatrix< T a) const
inline

Definition at line 1445 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator- ( F_TSMatrix< T ts) const
inline

Definition at line 1459 of file f_matrix.h.

template<typename T >
F_TMatrix< T > F_Matrix< T >::operator- ( const T a) const
inline

Definition at line 1406 of file f_matrix.h.

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator-= ( const F_Matrix< T > &  a)
inline

Definition at line 1252 of file f_matrix.h.

References F_TMatrix< T >::operator-=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator-= ( F_TMatrix< T a)
inline

Definition at line 1256 of file f_matrix.h.

References F_TMatrix< T >::operator-=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator-= ( const T a)
inline

Definition at line 1260 of file f_matrix.h.

References F_TMatrix< T >::operator-=().

template<typename T >
F_TSMatrix< T > F_Matrix< T >::operator/ ( const T a) const
inline

Definition at line 1413 of file f_matrix.h.

References BCHK, and T.

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator/= ( const T a)
inline

Definition at line 1264 of file f_matrix.h.

References F_TMatrix< T >::operator/=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator= ( const F_Matrix< T > &  m)
inline

Definition at line 1225 of file f_matrix.h.

References F_TMatrix< T >::operator=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator= ( const F_TMatrix< T > &  tm)
inline

Definition at line 1227 of file f_matrix.h.

References F_TMatrix< T >::operator=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator= ( F_TSMatrix< T ts)
inline

Definition at line 1229 of file f_matrix.h.

References F_TMatrix< T >::operator=().

template<typename T>
F_Matrix<T>& F_Matrix< T >::operator= ( const T v)
inline

Definition at line 1231 of file f_matrix.h.

References F_TMatrix< T >::operator=().

template<typename T >
bool F_Matrix< T >::operator== ( const F_Matrix< T > &  m) const
template<typename T>
bool F_Matrix< T >::operator== ( F_TMatrix< T > &  tm) const
inline

Definition at line 1295 of file f_matrix.h.

template<typename T >
bool F_Matrix< T >::operator== ( F_TSMatrix< T > &  ts) const
template<typename T>
F_Matrix<T>& F_Matrix< T >::resize ( const unsigned  r,
const unsigned  c 
)
inline

Definition at line 1234 of file f_matrix.h.

References F_TMatrix< T >::resize().

Referenced by eig(), inv(), lu_solve(), and F_Matrix< T >::resize().

template<typename T>
F_Matrix<T>& F_Matrix< T >::resize ( const unsigned  d)
inline

Definition at line 1236 of file f_matrix.h.

References F_Matrix< T >::resize().

template<typename T>
F_Matrix<T>& F_Matrix< T >::resize ( const T v,
const unsigned  r,
const unsigned  c 
)
inline

Definition at line 1238 of file f_matrix.h.

References F_TMatrix< T >::resize().

template<typename T>
unsigned int F_Matrix< T >::rows ( ) const
inline
template<typename T >
void F_Matrix< T >::set_col ( const Vector< T > &  v,
const unsigned int  c 
)
inline

Definition at line 1600 of file f_matrix.h.

References F_TMatrix< T >::set_col().

Referenced by eig(), and operator>>().

template<typename T >
void F_Matrix< T >::set_row ( const Vector< T > &  v,
const unsigned int  r 
)
inline

Definition at line 1618 of file f_matrix.h.

References F_TMatrix< T >::set_row().

template<typename T>
F_Matrix<T>& F_Matrix< T >::setunit ( const T f = 1)
inline

Definition at line 1242 of file f_matrix.h.

References F_TMatrix< T >::setunit().

template<typename T>
void F_Matrix< T >::setval ( const T  val,
const unsigned int  r,
const unsigned int  c 
)
inline

Definition at line 1221 of file f_matrix.h.

References F_Matrix< T >::operator()().

Referenced by F_Matrix< T >::F_Matrix().

template<typename T>
unsigned long F_Matrix< T >::size ( ) const
inline

Definition at line 1215 of file f_matrix.h.

References F_TMatrix< T >::dim.

template<typename T>
F_TMatrix<T> F_Matrix< T >::trans ( ) const
inline

Definition at line 1313 of file f_matrix.h.

Friends And Related Function Documentation

template<typename T>
friend class F_TSMatrix< T >
friend

Definition at line 1180 of file f_matrix.h.

template<typename T>
STD__ ostream& operator<< FGD ( STD__ ostream &  ,
const F_Matrix< T > &   
)
friend
template<typename T>
STD__ istream& operator>> FGD ( STD__ istream &  ,
F_Matrix< T > &   
)
friend

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