Example program to print eigen values in 3D.  
More...
#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include "JGeometry3D/JVector3D.hh"
#include "JGeometry3D/JEigen3D.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to print eigen values in 3D. 
- Author
 - mdejong 
 
Definition in file JEigenValues3D.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 45 of file JEigenValues3D.cc.
   55     JParser<> zap(
"Example program to print eigen values in 3D.");
 
   62   catch(
const exception& error) {
 
   63     FATAL(error.what() << endl);
 
   69   if (inputFile != 
"") {
 
   71     ifstream 
in(inputFile.c_str());
 
   73     for (
double x, y, z; 
in >> x >> y >> z; ) {
 
   75       buffer.push_back(JVector3D(x,y,z));
 
   81   const JEigenValues3D eigen(buffer.begin(), buffer.end());
 
   83   for (JEigenValues3D::const_iterator i = eigen.begin(); i != eigen.end(); ++i) {
 
   84     cout << 
FIXED(7,3) << i->first << 
' ' << i->second << endl;
 
Utility class to parse command line options. 
 
Auxiliary data structure for floating point format specification. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in