ergo
API_test.cc File Reference

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 "mat_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<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[])
 

Detailed Description

Test of the matrix library.

Copyright(c) Emanuel Rubensson 2005

Author
Emanuel Rubensson responsible author
Date
September 2005

Function Documentation

◆ dotIsBroken()

template<typename Treal >
bool dotIsBroken ( )

◆ frobdiff()

template<class Treal >
static Treal frobdiff ( const Treal * f1,
const Treal * f2,
int size )
static

◆ main()

int main ( int argc,
char * argv[] )

◆ mainFun()

template<typename real >
int mainFun ( int argc,
char * argv[] )

References A, mat::MatrixSymmetric< Treal, Tmatrix >::assign_from_sparse(), mat::MatrixGeneral< Treal, Tmatrix >::assign_from_sparse(), mat::MatrixTriangular< Treal, Tmatrix >::assign_from_sparse(), B, cols, mat::VectorGeneral< Treal, Tvector >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::frob_diff(), mat::MatrixSymmetric< Treal, Tmatrix >::frob_diff(), mat::frobNorm, mat::VectorGeneral< Treal, Tvector >::fullvector(), mat::gemm(), mat::gemv(), mat::MatrixGeneral< Treal, Tmatrix >::get_values(), mat::MatrixSymmetric< Treal, Tmatrix >::get_values(), mat::getMachineEpsilon(), mat::Params::getMatrixParallelLevel(), mat::Params::getNProcs(), mat::FileWritable::getStatsCountCopyAndAssign(), mat::FileWritable::getStatsCountRead(), mat::FileWritable::getStatsCountWrite(), mat::FileWritable::getStatsTimeCopyAndAssign(), mat::FileWritable::getStatsTimeRead(), mat::FileWritable::getStatsTimeWrite(), maxdiff(), maxdiff_tri(), mat::packedtofull(), mat::pptrf(), mat::VectorGeneral< Treal, Tvector >::rand(), mat::random_shuffle(), mat::MatrixGeneral< Treal, Tmatrix >::randomZeroStructure(), mat::FileWritable::readFromFile(), mat::VectorGeneral< Treal, Tvector >::resetSizesAndBlocks(), mat::MatrixBase< Treal, Tmatrix >::resetSizesAndBlocks(), mat::FileWritable::resetStats(), rows, mat::Params::setMatrixParallelLevel(), mat::Params::setNProcs(), mat::symm(), mat::symv(), mat::syrk(), template_blas_fabs(), template_blas_sqrt(), testAccumulation(), mat::tptri(), mat::transpose(), mat::tripackedtofull(), mat::trmm(), mat::trmv(), mat::FileWritable::writeToFile(), and mat::zero.

◆ maxdiff()

template<class Treal >
static Treal maxdiff ( std::vector< Treal > const & f1,
std::vector< Treal > const & f2 )
static

References mat::getMachineEpsilon(), and template_blas_fabs().

Referenced by mainFun().

◆ maxdiff_tri()

template<class Treal >
static Treal maxdiff_tri ( const Treal * f1,
const Treal * f2,
int size )
static

References mat::getMachineEpsilon(), and template_blas_fabs().

Referenced by mainFun().

◆ realIsSingle()

template<typename Treal >
bool realIsSingle ( )
inline

◆ realIsSingle< float >()

template<>
bool realIsSingle< float > ( )
inline

◆ testAccumulation()

template<typename Treal , typename Tmatrix >
static void testAccumulation ( const Tmatrix & syFock,
int size,
Treal * fockfull )
static