Collection of functions for matrix-related verifications. More...
Functions | |
template<class Form1 , class Form2 , class Type > | |
bool | equal (const Matrix< Form1, Type > &A, const Matrix< Form2, Type > &B, const bool verbose=false, const label maxDiffs=10, const scalar relTol=1e-5, const scalar absTol=1e-8) |
template<class Container > | |
Ostream & | printMatrix (Ostream &os, const Container &mat) |
bool equal | ( | const Matrix< Form1, Type > & | A, |
const Matrix< Form2, Type > & | B, | ||
const bool | verbose = false , |
||
const label | maxDiffs = 10 , |
||
const scalar | relTol = 1e-5 , |
||
const scalar | absTol = 1e-8 |
||
) |
maxDiffs | Stop reporting after maxDiffs (0 to disable) |
Definition at line 27 of file MatrixTools.C.
References A, B, Foam::Info, Foam::mag(), and Foam::nl.
Referenced by thermo< Thermo, Type >::dKcdTbyKc(), Instant< word >::equal(), if(), thermo< Thermo, Type >::Kc(), thermo< Thermo, Type >::Kn(), thermo< Thermo, Type >::Kx(), lineDivide::lineDivide(), UList< Foam::wordRe >::operator==(), MeshedSurface< Foam::face >::scalePoints(), abaqusWriter::writeTemplate(), rawWriter::writeTemplate(), and nastranWriter::writeTemplate().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.