|
ergo
|
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 |
| 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 | ( | ) |
References mat::dot(), and template_blas_fabs().
| static void fileread | ( | T * | ptr, |
| int | size, | ||
| FILE * | |||
| ) | [static] |
| void fileread< double > | ( | double * | ptr, |
| int | size, | ||
| FILE * | file | ||
| ) |
| void fileread< float > | ( | float * | ptr, |
| int | size, | ||
| FILE * | file | ||
| ) |
| static void filewrite | ( | T * | ptr, |
| int | size, | ||
| FILE * | |||
| ) |
| void filewrite< double > | ( | double * | ptr, |
| int | size, | ||
| FILE * | file | ||
| ) |
| void filewrite< float > | ( | float * | ptr, |
| int | size, | ||
| FILE * | file | ||
| ) |
| static Treal frobdiff | ( | const Treal * | f1, |
| const Treal * | f2, | ||
| int | size | ||
| ) | [static] |
References template_blas_sqrt().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| int mainFun | ( | int | argc, |
| char * | argv[] | ||
| ) |
References mat::Params::setNProcs(), mat::Params::setMatrixParallelLevel(), mat::Params::getNProcs(), mat::Params::getMatrixParallelLevel(), template_blas_sqrt(), A, B, mat::MatrixBase::resetSizesAndBlocks(), mat::MatrixGeneral::randomZeroStructure(), mat::MatrixGeneral::nnz(), mat::MatrixGeneral::get_values(), mat::MatrixGeneral::get_all_values(), mat::MatrixGeneral::assign_from_sparse(), mat::MatrixBase::get_nrows(), mat::MatrixGeneral::fullMatrix(), mat::MatrixSymmetric::randomZeroStructure(), mat::MatrixBase::add_identity(), mat::MatrixSymmetric::get_values(), mat::MatrixSymmetric::get_all_values(), mat::MatrixSymmetric::assign_from_sparse(), mat::MatrixSymmetric::random(), mat::MatrixSymmetric::fullMatrix(), mat::MatrixTriangular::random(), mat::MatrixTriangular::get_values(), mat::MatrixTriangular::get_all_values(), mat::MatrixTriangular::assign_from_sparse(), mat::MatrixGeneral::assignFromFull(), mat::maxdiff(), mat::MatrixSymmetric::assignFromFull(), mat::zero, mat::gemm(), mat::transpose(), mat::packedtofull(), mat::symm(), mat::syrk(), mat::maxdiff_tri(), mat::tripackedtofull(), mat::trmm(), mat::frobNorm, mat::MatrixGeneral::frob(), template_blas_fabs(), mat::MatrixSymmetric::frob(), mat::MatrixTriangular::frob(), mat::MatrixGeneral::frob_diff(), mat::MatrixSymmetric::frob_diff(), mat::MatrixBase::trace(), mat::MatrixGeneral::frob_thresh(), mat::pptrf(), mat::tptri(), mat::MatrixTriangular::inch(), mat::MatrixSymmetric::gersgorin(), mat::MatrixBase::memory_usage(), testAccumulation(), mat::gemv(), mat::symv(), mat::MatrixTriangular::eucl(), mat::trmv(), mat::MatrixSymmetric::eucl(), mat::arn::LanczosLargestMagnitudeEig::getLargestMagnitudeEig(), mat::MatrixSymmetric::setElementsByRule(), mat::MatrixSymmetric::eucl_thresh(), mat::MatrixSymmetric::mixed_norm_thresh(), mat::MatrixTriangular::setElementsByRule(), mat::MatrixTriangular::eucl_thresh(), mat::MatrixGeneral::setElementsByRule(), mat::MatrixGeneral::eucl_thresh(), mat::MatrixGeneral::eucl(), mat::MatrixTriangular::eucl_thresh_congr_trans_measure(), mat::FileWritable::resetStats(), mat::FileWritable::getStatsTimeWrite(), mat::FileWritable::getStatsTimeRead(), mat::FileWritable::getStatsTimeCopyAndAssign(), mat::FileWritable::getStatsCountWrite(), mat::FileWritable::getStatsCountRead(), mat::FileWritable::getStatsCountCopyAndAssign(), and mat::Failure::what().
| static Treal maxdiff | ( | std::vector< Treal > const & | f1, |
| std::vector< Treal > const & | f2 | ||
| ) | [static] |
References template_blas_fabs().
| static Treal maxdiff_tri | ( | const Treal * | f1, |
| const Treal * | f2, | ||
| int | size | ||
| ) | [static] |
References template_blas_fabs().
| bool realIsSingle | ( | ) | [inline] |
| bool realIsSingle< float > | ( | ) | [inline] |
| static void testAccumulation | ( | const Tmatrix & | syFock, |
| int | size, | ||
| Treal * | fockfull | ||
| ) | [static] |
References mat::accumulate(), template_blas_fabs(), and template_blas_sqrt().
Referenced by mainFun().