#include <string>
#include <iostream>
#include <iomanip>
#include "TRandom3.h"
#include "JMath/JMath.hh"
#include "JMath/JSVD3D.hh"
#include "JMath/JMathTestkit.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 15 of file JSVD3D.cc.
   16{
   19 
   20  double precision;
   22 
   23  try {
   24 
   26 
   29 
   30    zap(argc, argv);
   31  }
   32  catch(const exception &error) {
   33    FATAL(error.what() << endl);
 
   34  }
   35 
   36 
   37  gRandom->SetSeed(0);
   38 
   39 
   41 
   43 
   45 
   46  DEBUG(
"A" << endl << A     << endl);
 
   47  DEBUG(
"U" << endl << svd.
U << endl);
 
   48  DEBUG(
"S" << endl << svd.
S << endl);
 
   49  DEBUG(
"V" << endl << svd.
V << endl);
 
   50 
   52 
   53  C *= A;
   54 
   55  DEBUG(
"C" << endl << C << endl);
 
   56 
   57  ASSERT(C.isIdentity(precision));
 
   58 
   59  return 0;
   60}
#define DEBUG(A)
Message macros.
 
#define ASSERT(A,...)
Assert macro.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Singular value decomposition.
 
const JMatrix3D & invert(const double precision=1.0e-12) const
Get inverted matrix.
 
void decompose(const JMatrix3D &A)
Decompose given matrix.
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).