Test of the matrix library. More...
#include <fstream>
#include <iomanip>
#include <iostream>
#include <cmath>
#include <stdio.h>
#include "SizesAndBlocks.h"
#include "Matrix.h"
#include "Vector.h"
#include "MatrixSymmetric.h"
#include "MatrixTriangular.h"
#include "MatrixGeneral.h"
#include "VectorGeneral.h"
#include "gblas.h"
#include "Lanczos.h"
Classes | |
class | Sum< Treal > |
class | expRule< Treal > |
Functions | |
template<typename Treal > | |
bool | realIsSingle () |
template<> | |
bool | realIsSingle< float > () |
template<class Treal > | |
static Treal | maxdiff (std::vector< Treal > const &f1, std::vector< Treal > const &f2) |
template<class Treal > | |
static Treal | maxdiff_tri (const Treal *f1, const Treal *f2, int size) |
template<class Treal > | |
static Treal | frobdiff (const Treal *f1, const Treal *f2, int size) |
template<class T > | |
static void | fileread (T *ptr, int size, FILE *) |
template<> | |
void | fileread< double > (double *ptr, int size, FILE *file) |
template<> | |
void | fileread< float > (float *ptr, int size, FILE *file) |
template<class T > | |
void | filewrite (T *ptr, int size, FILE *) |
template<> | |
void | filewrite< double > (double *ptr, int size, FILE *file) |
template<> | |
void | filewrite< float > (float *ptr, int size, FILE *file) |
template<typename Treal , typename Tmatrix > | |
static void | testAccumulation (const Tmatrix &syFock, int size, Treal *fockfull) |
template<typename Treal > | |
bool | dotIsBroken () |
template<typename real > | |
int | mainFun (int argc, char *argv[]) |
int | main (int argc, char *argv[]) |
Test of the matrix library.
Copyright(c) Emanuel Rubensson 2005
bool dotIsBroken | ( | ) | [inline] |
References mat::dot(), and template_blas_fabs().
static void fileread | ( | T * | ptr, | |
int | size, | |||
FILE * | ||||
) | [inline, static] |
void fileread< double > | ( | double * | ptr, | |
int | size, | |||
FILE * | file | |||
) | [inline] |
void fileread< float > | ( | float * | ptr, | |
int | size, | |||
FILE * | file | |||
) | [inline] |
static void filewrite | ( | T * | ptr, | |
int | size, | |||
FILE * | ||||
) | [inline] |
void filewrite< double > | ( | double * | ptr, | |
int | size, | |||
FILE * | file | |||
) | [inline] |
void filewrite< float > | ( | float * | ptr, | |
int | size, | |||
FILE * | file | |||
) | [inline] |
static Treal frobdiff | ( | const Treal * | f1, | |
const Treal * | f2, | |||
int | size | |||
) | [inline, static] |
References template_blas_sqrt().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
int mainFun | ( | int | argc, | |
char * | argv[] | |||
) | [inline] |
References A, mat::MatrixBase< Treal, Tmatrix >::add_identity(), mat::MatrixTriangular< Treal, Tmatrix >::assign_from_sparse(), mat::MatrixSymmetric< Treal, Tmatrix >::assign_from_sparse(), mat::MatrixGeneral< Treal, Tmatrix >::assign_from_sparse(), mat::MatrixSymmetric< Treal, Tmatrix >::assignFromFull(), mat::MatrixGeneral< Treal, Tmatrix >::assignFromFull(), B, mat::MatrixGeneral< Treal, Tmatrix >::eucl(), mat::MatrixSymmetric< Treal, Tmatrix >::eucl(), mat::MatrixTriangular< Treal, Tmatrix >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::eucl_thresh(), mat::MatrixTriangular< Treal, Tmatrix >::eucl_thresh(), mat::MatrixSymmetric< Treal, Tmatrix >::eucl_thresh(), mat::MatrixTriangular< Treal, Tmatrix >::frob(), mat::MatrixSymmetric< Treal, Tmatrix >::frob(), mat::MatrixGeneral< Treal, Tmatrix >::frob(), mat::MatrixSymmetric< Treal, Tmatrix >::frob_diff(), mat::MatrixGeneral< Treal, Tmatrix >::frob_diff(), mat::MatrixGeneral< Treal, Tmatrix >::frob_thresh(), mat::frobNorm, mat::MatrixSymmetric< Treal, Tmatrix >::fullMatrix(), mat::MatrixGeneral< Treal, Tmatrix >::fullMatrix(), mat::gemm(), mat::gemv(), mat::MatrixSymmetric< Treal, Tmatrix >::gersgorin(), mat::MatrixTriangular< Treal, Tmatrix >::get_all_values(), mat::MatrixSymmetric< Treal, Tmatrix >::get_all_values(), mat::MatrixGeneral< Treal, Tmatrix >::get_all_values(), mat::MatrixBase< Treal, Tmatrix >::get_nrows(), mat::MatrixTriangular< Treal, Tmatrix >::get_values(), mat::MatrixSymmetric< Treal, Tmatrix >::get_values(), mat::MatrixGeneral< Treal, Tmatrix >::get_values(), mat::arn::LanczosLargestMagnitudeEig< Treal, Tmatrix, Tvector >::getLargestMagnitudeEig(), mat::Params::getMatrixParallelLevel(), mat::Params::getNProcs(), mat::MatrixTriangular< Treal, Tmatrix >::inch(), maxdiff(), maxdiff_tri(), mat::MatrixBase< Treal, Tmatrix >::memory_usage(), mat::MatrixSymmetric< Treal, Tmatrix >::mixed_norm_thresh(), mat::MatrixGeneral< Treal, Tmatrix >::nnz(), mat::packedtofull(), mat::pptrf(), mat::MatrixTriangular< Treal, Tmatrix >::random(), mat::MatrixSymmetric< Treal, Tmatrix >::random(), mat::MatrixSymmetric< Treal, Tmatrix >::randomZeroStructure(), mat::MatrixGeneral< Treal, Tmatrix >::randomZeroStructure(), mat::FileWritable::readFromFile(), mat::MatrixBase< Treal, Tmatrix >::resetSizesAndBlocks(), mat::MatrixGeneral< Treal, Tmatrix >::setElementsByRule(), mat::MatrixTriangular< Treal, Tmatrix >::setElementsByRule(), mat::MatrixSymmetric< Treal, Tmatrix >::setElementsByRule(), mat::Params::setMatrixParallelLevel(), mat::Params::setNProcs(), mat::symm(), mat::symv(), mat::syrk(), template_blas_fabs(), template_blas_sqrt(), testAccumulation(), mat::tptri(), mat::MatrixBase< Treal, Tmatrix >::trace(), mat::transpose(), mat::tripackedtofull(), mat::trmm(), mat::trmv(), mat::Failure::what(), mat::FileWritable::writeToFile(), and mat::zero.
static Treal maxdiff | ( | std::vector< Treal > const & | f1, | |
std::vector< Treal > const & | f2 | |||
) | [inline, static] |
References template_blas_fabs().
Referenced by mainFun().
static Treal maxdiff_tri | ( | const Treal * | f1, | |
const Treal * | f2, | |||
int | size | |||
) | [inline, static] |
References template_blas_fabs().
Referenced by mainFun().
bool realIsSingle | ( | ) | [inline] |
bool realIsSingle< float > | ( | ) | [inline] |
static void testAccumulation | ( | const Tmatrix & | syFock, | |
int | size, | |||
Treal * | fockfull | |||
) | [inline, static] |
References mat::accumulate(), template_blas_fabs(), and template_blas_sqrt().
Referenced by mainFun().