TBCI Numerical high perf. C++ Library  2.8.0
Classes | Macros | Functions
matrix_kernels.h File Reference

Optimized matrix operations ... More...

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

Go to the source code of this file.

Classes

class  Matrix< T >
 
class  TMatrix< T >
 
class  TSMatrix< T >
 
class  Vector< T >
 
class  TVector< T >
 Temporary Base Class Idiom: Class TVector is used for temporary variables. More...
 
class  TSVector< T >
 

Macros

#define COST_MATVEC(r, c)
 

Functions

template<typename T >
void do_old_mat_mat_mult (const unsigned start, const unsigned end, TMatrix< T > *res, const Matrix< T > *a, const Matrix< T > *b)
 
template<typename T >
void do_mat_mat_mult (const unsigned start, const unsigned end, TMatrix< T > *res, const Matrix< T > *a, const Matrix< T > *b)
 TODO: Provide plain version of mat-mat and mat-vec mult! More...
 
template<typename T >
void 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 do_mat_tsv_mult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const TSVector< T > *tsv)
 
template<typename T >
void do_mat_vec_transmult_exact (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const Vector< T > *vec)
 
template<typename T >
void do_mat_vec_transmult (const unsigned start, const unsigned end, TVector< T > *res, const Matrix< T > *mat, const Vector< T > *vec)
 

Detailed Description

Optimized matrix operations ...

Kurt Garloff kurt@.nosp@m.garl.nosp@m.off.d.nosp@m.e, 07/2002, GNU LGPL $id$

Definition in file matrix_kernels.h.

Macro Definition Documentation

#define COST_MATVEC (   r,
  c 
)
Value:
#define COST_MULT
Definition: cost.h:72
return c
Definition: f_matrix.h:760
#define COST_UNIT_STORE
Definition: cost.h:44
#define COST_UNIT_LOAD
There are several basic operations which are assigned a relative cost: (a good choice is to use twice...
Definition: cost.h:40
#define COST_ADD
Definition: cost.h:64
#define COST_CALL
Definition: cost.h:80
#define COST_LOOP
Definition: cost.h:84

Definition at line 147 of file matrix_kernels.h.

Function Documentation

template<typename T >
void do_mat_mat_mult ( const unsigned  start,
const unsigned  end,
TMatrix< T > *  res,
const Matrix< T > *  a,
const Matrix< T > *  b 
)

TODO: Provide plain version of mat-mat and mat-vec mult!

Definition at line 122 of file matrix_kernels.h.

References TMatrix< T >::columns(), do_exactsum2(), do_old_mat_mat_mult(), TMatrix< T >::getrowptr(), i, RESTRICT, and T.

Referenced by INST().

template<typename T >
void do_mat_tsv_mult ( const unsigned  start,
const unsigned  end,
TVector< T > *  res,
const Matrix< T > *  mat,
const TSVector< T > *  tsv 
)
template<typename T >
void 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 do_mat_vec_transmult ( const unsigned  start,
const unsigned  end,
TVector< T > *  res,
const Matrix< T > *  mat,
const Vector< T > *  vec 
)
template<typename T >
void do_mat_vec_transmult_exact ( const unsigned  start,
const unsigned  end,
TVector< T > *  res,
const Matrix< T > *  mat,
const Vector< T > *  vec 
)
template<typename T >
void do_old_mat_mat_mult ( const unsigned  start,
const unsigned  end,
TMatrix< T > *  res,
const Matrix< T > *  a,
const Matrix< T > *  b 
)