tngmath Namespace Reference

This namespace encapsulates all classes and methods of the module tngmath. More...


Classes

class  CWiseBase
class  EigenBase
class  EigenSelfadjointBase
class  LDLTBase
class  LLTBase
class  LUBase
class  MathArrayBase
class  MathDynSparseArrayBase
class  MathSparseArrayBase
class  Matrix
 The standard dense Matrix/Vector class. More...
class  MatrixBase
 Defines the base class of dense matrices without functionality It is mainly used for interoperation with other modules. This class contains basic functionality (such as setting and extracting values), but not the complete set of methods of Matrix (solvers, etc.). More...
class  MatrixColWise
class  MatrixCWise
class  MatrixRowWise
class  QRBase
class  RowColWiseBase
class  SparseArpack
 Eigen analyses solver for sparse matrices based on ARPACK. More...
class  SparseLLT
 Base class of LL' solvers. The input matrices must be selfadjoint (symmetric) It already implements the standard LL' decomposition. More...
class  SparseLLTCholmod
 LL' solver for selfadjoint sparse matrices using CHOLMOD. More...
class  SparseLowerLLT
 Default LL' solver for selfadjoint lowertriangular sparse matrices. More...
class  SparseLowerLLTCholmod
 LL' solver for selfadjoint lowertriangular sparse matrices using CHOLMOD. More...
class  SparseLU
 Base class of LU solvers. It already implements the standard LU decomposition. More...
class  SparseLUMUMPS
 LU solver for sparse matrices using MUMPS. More...
class  SparseLUUmfPack
 LU solver for sparse matrices using UMFPACK. More...
class  SparseMatrix
 The default sparse matrix class. More...
class  SparseMatrixInnerIterator
 Iterator for inner index of SparseMatrix. More...
class  SparseMatrixIterator
 Iterator for outer index of SparseMatrix. More...
class  SparseSolver
 The base class for sparse solvers. It provides a unified interface which can be used by generic algorithms. More...
class  SparseSuperLU
 LU solver for sparse matrices using SuperLU. More...
class  SparseUpperLLT
 Default LL' solver for selfadjoint uppertriangular sparse matrices. More...
class  SparseUpperLLTCholmod
 LL' solver for selfadjoint uppertriangular sparse matrices using CHOLMOD. More...
class  SVDBase
struct  TMumpsInterface
struct  TMumpsInterface< double >
struct  TMumpsInterface< float >
struct  TNG_Complex
class  XMatrix
 A class that extends Matrix by many convenience methods. More...
class  XMatrixColWise
class  XMatrixCWise
class  XMatrixRowWise

Typedefs

typedef MathDynSparseArrayBase
< double > 
DynamicSparseMatrixBase
 basic dynamic sparse matrix class without functionality. is of type 'MathDynSparseArrayBase' with scalar 'double' precision
typedef EigenBase< Matrix, double > MatrixEigen
typedef EigenSelfadjointBase
< Matrix, double,
Eigen::ColMajor > 
MatrixEigenSym
typedef EigenSelfadjointBase
< Matrix, double,
Eigen::ColMajor|Eigen::UpperTriangular > 
MatrixEigenSymLower
typedef EigenSelfadjointBase
< Matrix, double,
Eigen::ColMajor|Eigen::LowerTriangular > 
MatrixEigenSymUpper
typedef LDLTBase< Matrix, double > MatrixLDLT
typedef LLTBase< Matrix, double > MatrixLLT
typedef LUBase< Matrix, double > MatrixLU
typedef QRBase< Matrix, double > MatrixQR
typedef SVDBase< Matrix, double > MatrixSVD
typedef MathSparseArrayBase
< double > 
SparseMatrixBase
 the default array class 'SparseMatrixBase' which is of type 'MathSparseArrayBase' with scalar 'double' precision
typedef struct tngmath::TNG_Complex TNG_Complex
typedef EigenBase< XMatrix,
double > 
XMatrixEigen
typedef EigenSelfadjointBase
< XMatrix, double,
Eigen::ColMajor > 
XMatrixEigenSym
typedef EigenSelfadjointBase
< XMatrix, double,
Eigen::ColMajor|Eigen::UpperTriangular > 
XMatrixEigenSymLower
typedef EigenSelfadjointBase
< XMatrix, double,
Eigen::ColMajor|Eigen::LowerTriangular > 
XMatrixEigenSymUpper
typedef LDLTBase< XMatrix, double > XMatrixLDLT
typedef LLTBase< XMatrix, double > XMatrixLLT
typedef LUBase< XMatrix, double > XMatrixLU
typedef QRBase< XMatrix, double > XMatrixQR
typedef SVDBase< XMatrix, double > XMatrixSVD

Functions

XMatrix Cos (XMatrix &)
double Cos (double)
TNGArray Cos (TNGArray &)
int exportPNG (const char *filename, int width, int height, const unsigned int *data)
XMatrix Gamma (XMatrix &a)
double Gamma (double)
TNGArray Gamma (TNGArray &a)
double gamma (double z)
double gauss1_pdf (double x)
double gauss2_pdf (double x, double y, double rho)
double gaussn_pdf (double *x, double *irho, int n, double)
XMatrix IPhi (XMatrix &)
double IPhi (double)
TNGArray IPhi (TNGArray &)
void matrix_add (double *matrix1, double *matrix2, int rows, int col, double *matrix_out)
void matrix_add_scal (double *matrix1, double *matrix2, int rows, int col, double factor1, double factor2, double *matrix_out)
void matrix_block_fill (double *m, int nr, double *M, int nrep)
void matrix_block_mult (double *mat, double *vec, int reps, double *result)
int matrix_cholesky (char *uplo, double *in, int n, double *out)
int matrix_eigen (double *, int, double *, double *, double *)
int matrix_eigenul (char *, double *, int, double *, double *)
int matrix_eigenulg (char *, double *, double *, int, double *, double *)
int matrix_exponential (double *mat, int n, double *expo, double dt)
void matrix_init (double *matrix, int row, int col)
int matrix_invert (double *mat, int n, double *inv)
int matrix_invert_complex (double *mat, int n, double *inv)
void matrix_minus (double *matrix1, double *matrix2, int rows, int col)
void matrix_mult (double *a_mat, int cols_a, int rows_a, double *b_mat, int cols_b, double *result)
void matrix_mult_trans (double *a_mat, int cols_a, int rows_a, double *b_mat, int cols_b, double *result)
void matrix_plus (double *matrix1, double *matrix2, int rows, int col)
void matrix_plus_scal (double *matrix1, double *matrix2, int rows, int col, double factor)
int matrix_print_int (int *matrix, int cols, int rows, char *format, char *title)
int matrix_print_real (double *matrix, int cols, int rows, char *format, char *title)
int matrix_print_real_range (double *matrix, int cols, int rows, char *format, char *title, int range)
void matrix_scal (double *matrix, int rows, int col, double scalar, double *matrix_out)
int matrix_solve (double *mat, int n, double *b, int m, double *x)
void matrix_sort (double *mat, double *old, int nrows, int ncols, int col, bool up)
void matrix_sub (double *matrix1, double *matrix2, int rows, int col, double *matrix_out)
int matrix_svd (double *, int, int, double *, double *, double *, int *)
void matrix_tran (double *matrix_inp, int cols, int rows, double *matrix_out)
void matrix_trans_mult (double *a_mat, int cols_a, int rows_a, double *b_mat, int cols_b, double *result)
void matrix_vec_mult (double *mat, double *vec, int nrow, int ncol, double *result)
Matrix operator* (const double &x, const Matrix &y)
 returns the product (x*y)
XMatrix operator+ (const double &x, const XMatrixCWise &y)
 returns the CWise sum (x+y)
Matrix operator+ (const double &x, const MatrixCWise &y)
 returns the CWise sum (x+y)
XMatrix operator- (const double &x, const XMatrixCWise &y)
 returns the CWise difference (x-y)
Matrix operator- (const double &x, const MatrixCWise &y)
 returns the CWise difference (x-y)
XMatrix Phi (XMatrix &)
double Phi (double)
TNGArray Phi (TNGArray &)
XMatrix Pow (XMatrix &, double)
double Pow (double, double)
TNGArray Pow (TNGArray &, double)
int rot_to_matrix (double *rot, double s, double c, double *mat)
XMatrix Sin (XMatrix &)
double Sin (double)
TNGArray Sin (TNGArray &)
void TNGColorize (double xmin, double xmax, double val1, int posterize, unsigned char &r, unsigned char &g, unsigned char &b)
template<typename OtherDerived>
Matrix toMatrix (const Eigen::MatrixBase< OtherDerived > &other)
template<typename OtherDerived>
MatrixBase toMatrixBase (const Eigen::MatrixBase< OtherDerived > &other)
template<typename OtherDerived>
MatrixBase toMatrixBaseMove (Eigen::MatrixBase< OtherDerived > &other)
template<typename OtherDerived>
Matrix toMatrixMove (Eigen::MatrixBase< OtherDerived > &other)
template<typename OtherDerived>
XMatrix toXMatrix (const Eigen::MatrixBase< OtherDerived > &other)
 returns the sum (x+y)
template<typename OtherDerived>
XMatrix toXMatrixMove (Eigen::MatrixBase< OtherDerived > &other)
double uniform_rand ()
void vector_block_add (double *vec1, double *vec2, int reps, double *res)
void vector_cross (double *vec1, double *vec2, double *result)
void vector_length (double *vector, int dim, double *length)
void vector_mult (double *vector1, double *vector2, int dim, double *scalar)


Detailed Description

This namespace encapsulates all classes and methods of the module tngmath.

Typedef Documentation

Eigen solver class. It is a specialization of EigenBase with return type Matrix and scalar base type 'real number'

typedef EigenSelfadjointBase<Matrix,double,Eigen::ColMajor> tngmath::MatrixEigenSym

symmetric Eigen solver class. It is a specialization of EigenBase with return type Matrix and scalar base type 'real number'

typedef EigenSelfadjointBase<Matrix,double,Eigen::ColMajor|Eigen::UpperTriangular> tngmath::MatrixEigenSymLower

symmetric Eigen solver class for upper triangular matrices. It is a specialization of EigenBase with return type Matrix and scalar base type 'real number'

typedef EigenSelfadjointBase<Matrix,double,Eigen::ColMajor|Eigen::LowerTriangular> tngmath::MatrixEigenSymUpper

symmetric Eigen solver class for lower triangular matrices. It is a specialization of EigenBase with return type Matrix and scalar base type 'real number'

LDL solver class. It is a specialization of LDLBase with return type Matrix and scalar base type 'real number'

LLT solver class. It is a specialization of LLTBase with return type Matrix and scalar base type 'real number'

typedef LUBase<Matrix,double> tngmath::MatrixLU

LU solver class. It is a specialization of LUBase with return type Matrix and scalar base type 'real number'

typedef QRBase<Matrix,double> tngmath::MatrixQR

QR solver class. It is a specialization of QRBase with return type Matrix and scalar base type 'real number'

SVD solver class. It is a specialization of SVDBase with return type Matrix and scalar base type 'real number'

Eigen solver class. It is a specialization of EigenBase with return type XMatrix and scalar base type 'real number'

typedef EigenSelfadjointBase<XMatrix,double,Eigen::ColMajor> tngmath::XMatrixEigenSym

symmetric Eigen solver class. It is a specialization of EigenBase with return type XMatrix and scalar base type 'real number'

typedef EigenSelfadjointBase<XMatrix,double,Eigen::ColMajor|Eigen::UpperTriangular> tngmath::XMatrixEigenSymLower

symmetric Eigen solver class for upper triangular matrices. It is a specialization of EigenBase with return type XMatrix and scalar base type 'real number'

typedef EigenSelfadjointBase<XMatrix,double,Eigen::ColMajor|Eigen::LowerTriangular> tngmath::XMatrixEigenSymUpper

symmetric Eigen solver class for lower triangular matrices. It is a specialization of EigenBase with return type XMatrix and scalar base type 'real number'

LDL solver class. It is a specialization of LDLBase with return type XMatrix and scalar base type 'real number'

LLT solver class. It is a specialization of LLTBase with return type XMatrix and scalar base type 'real number'

LU solver class. It is a specialization of LUBase with return type XMatrix and scalar base type 'real number'

QR solver class. It is a specialization of QRBase with return type XMatrix and scalar base type 'real number'

SVD solver class. It is a specialization of SVDBase with return type XMatrix and scalar base type 'real number'


Function Documentation

template<typename OtherDerived>
Matrix tngmath::toMatrix ( const Eigen::MatrixBase< OtherDerived > &  other  )  [inline]

copies the data to Matrix type and returns it

template<typename OtherDerived>
MatrixBase tngmath::toMatrixBase ( const Eigen::MatrixBase< OtherDerived > &  other  )  [inline]

copies the data to MatrixBase type and returns it

template<typename OtherDerived>
MatrixBase tngmath::toMatrixBaseMove ( Eigen::MatrixBase< OtherDerived > &  other  )  [inline]

moves the data to MatrixBase type and returns it

template<typename OtherDerived>
Matrix tngmath::toMatrixMove ( Eigen::MatrixBase< OtherDerived > &  other  )  [inline]

moves the data to Matrix type and returns it

template<typename OtherDerived>
XMatrix tngmath::toXMatrix ( const Eigen::MatrixBase< OtherDerived > &  other  )  [inline]

returns the sum (x+y)

returns the product (x*y) copies the data to XMatrix type and returns it

template<typename OtherDerived>
XMatrix tngmath::toXMatrixMove ( Eigen::MatrixBase< OtherDerived > &  other  )  [inline]

moves the data to XMatrix type and returns it


Generated on Wed Nov 17 17:35:51 2010 for 'tngmath' Module Programming Interface by  doxygen 1.5.6