21 int main(
int argc,
char**argv)
31 JParser<> zap(
"Example program to test inversion of symmetric matrix.");
38 catch(
const exception &error) {
39 FATAL(error.what() << endl);
48 DEBUG(
"Matrix A" << endl);
59 DEBUG(
"Matrix A^-1" << endl);
66 DEBUG(
"Matrix A x A^-1" << endl);
69 NOTICE(
"Determinant (A x A^-1) = " <<
C.getDeterminant() << endl);
71 NOTICE(
"A x A^-1 = I ? " <<
C.isIdentity(precision) << endl);
73 if (!
C.isIdentity(precision)) {
74 ERROR(
"Matrix A x A^-1 /= I" << endl);
79 DEBUG(
"Matrix D = C - I" << endl);
82 ASSERT(
C.isIdentity(precision));
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
double getDeterminant() const
Get determinant of matrix.
void invert()
Invert matrix.
Utility class to parse command line options.
static const double C
Physics constants.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).