matrix.h File Reference

Implementation of classes TBCI::Matrix, TBCI::TMatrix, TBCI::TSMatrix. More...

#include "basics.h"
#include "vector.h"
#include "matrix_sig.h"
#include "matrix_kernels.h"

Include dependency graph for matrix.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  TBCI
namespace  std

Classes

class  TBCI::MatErr
 exception class More...
class  TBCI::TMatrix< T >
class  TBCI::TSMatrix< T >
class  TBCI::Matrix< T >
class  TBCI::Mat_Brack< T >

Defines

#define _VEC   vec
#define _ENDVEC   endvec
#define _DIM   dim
#define _ROW   row
#define _COL   col
#define _FAC   fac
#define SMP_MATSLICE   1024
#define COST_MATMAT_OLD(ra, ca, cb)
#define COST_MATMAT_NEW(ra, ca, cb)
#define COST_MATMAT(ra, ca, cb)   COST_MATMAT_NEW(ra,ca,cb)

Enumerations

enum  TBCI::rowcolvec { TBCI::rowvec = 0, TBCI::colvec = 1 }

Functions

template<typename T>
void TBCI::do_mat_vec_mult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const Vector< T > *vec)
template<typename T>
void TBCI::do_mat_tsv_mult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const TSVector< T > *vec)
template<typename T>
void TBCI::do_mat_vec_transmult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const Vector< T > *vec)
template<typename T>
TMatrix< T > TBCI::operator+ (const T &a, TMatrix< T > b)
template<typename T>
TMatrix< T > TBCI::operator- (const T &a, TMatrix< T > b)
template<typename T>
TSMatrix< T > TBCI::operator* (const T &a, TMatrix< T > b)
template<typename T>
TMatrix< T > TBCI::operator+ (const T &a, const Matrix< T > &b)
template<typename T>
TMatrix< T > TBCI::operator- (const T &a, const Matrix< T > &b)
template<typename T>
TSMatrix< T > TBCI::operator* (const T &a, const Matrix< T > &b)
template<typename T>
double TBCI::fabssqr (const TMatrix< T > &tm)
template<typename T>
TMatrix< T > TBCI::transpose (const TMatrix< T > &tm)
template<typename T>
double std::fabs (const TBCI::TMatrix< T > &tm)
template<typename T>
double std::fabs (const TBCI::Matrix< T > &m)
template<typename T>
TMatrix< T > TBCI::operator+ (const T &a, const TSMatrix< T > &ts)
template<typename T>
TMatrix< T > TBCI::operator- (const T &a, const TSMatrix< T > &ts)
template<typename T>
TSMatrix< T > TBCI::operator* (const T &f, TSMatrix< T > ts)
template<typename T>
double TBCI::fabssqr (TSMatrix< T > &tsm)
template<typename T>
double std::fabs (TBCI::TSMatrix< T > &ts)
template<typename T>
std::ostream & TBCI::operator<< (std::ostream &os, const Matrix< T > &m)
template<typename T>
std::istream & TBCI::operator>> (std::istream &in, Matrix< T > &m)
template<typename T>
std::ostream & TBCI::operator<< (std::ostream &os, TMatrix< T > tm)
template<typename T>
std::ostream & TBCI::operator<< (std::ostream &os, const TSMatrix< T > &ts)
template<typename T>
void TBCI::job_mat_mat_mult (struct thr_ctrl *tc)
template<typename T>
double TBCI::fabssqr (const Matrix< T > &m)
template<typename T>
void TBCI::job_mat_vec_mult (struct thr_ctrl *tc)
template<typename T>
void TBCI::job_mat_vec_transmult (struct thr_ctrl *tc)
template<typename T>
BVector< T > & TBCI::bvfillm (BVector< T > &bv, const Matrix< T > &m)
template<typename T>
int TBCI::lu_decomp (Matrix< T > &mat)
 LU decomposes the TBCI::Matrix mat.


Detailed Description

Implementation of classes TBCI::Matrix, TBCI::TMatrix, TBCI::TSMatrix.

Definition in file matrix.h.


Define Documentation

#define _COL   col

Definition at line 44 of file matrix.h.

#define _DIM   dim

Definition at line 42 of file matrix.h.

#define _ENDVEC   endvec

Definition at line 41 of file matrix.h.

#define _FAC   fac

Definition at line 45 of file matrix.h.

#define _ROW   row

Definition at line 43 of file matrix.h.

#define _VEC   vec

Definition at line 40 of file matrix.h.

#define COST_MATMAT ( ra,
ca,
cb   )     COST_MATMAT_NEW(ra,ca,cb)

Definition at line 1934 of file matrix.h.

#define COST_MATMAT_NEW ( ra,
ca,
cb   ) 

Value:

(ra*cb*COST_MEMSET+ra*ca*(2*COST_UNIT_LOAD+COST_LOOP \
  /*+COST_CALL*/+cb*(3*COST_UNIT_LOAD/*+COST_CALL*/+COST_UNIT_STORE+COST_ADD+COST_MULT+COST_LOOP)))

Definition at line 1929 of file matrix.h.

#define COST_MATMAT_OLD ( ra,
ca,
cb   ) 

Value:

Definition at line 1927 of file matrix.h.

#define SMP_MATSLICE   1024

Definition at line 96 of file matrix.h.

Referenced by TBCI::Matrix< T >::operator*(), and TBCI::Matrix< T >::transMult().


Generated on Wed Nov 20 09:28:16 2013 for TBCI Numerical high perf. C++ Library by  doxygen 1.5.6