Example program to test matrix operations.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JLang/JException.hh"
#include "JMath/JMatrixND.hh"
#include "Jeep/JTimer.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 test matrix operations. 
- Author
 - mdejong 
 
Definition in file JMatrixND.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 19 of file JMatrixND.cc.
   29     JParser<> zap(
"Example program to test matrix operations.");
 
   37   catch(
const exception &error) {
 
   38     FATAL(error.what() << endl);
 
   48   for (
int i = 0; i != 
N; ++i) {
 
   52     for (
int j = 0; 
j != i; ++
j) {
 
   53       A(
j,i) = 
A(i,
j) = 0.0;
 
   58     JTimer t1(
"standard");
 
   60     for (
int i = 0; i != numberOfEvents; ++i) {
 
   84       if (!
E.isIdentity()) {
 
   85         ERROR(
"Matrix product error" << endl);
 
   92     JTimer t1(
"calculator");
 
   96     for (
int i = 0; i != numberOfEvents; ++i) {
 
  100       B = 
A * 
A * 
A * 
A * 
A;
 
  106       if (!B.isIdentity()) {
 
  107         ERROR(
"Matrix product error" << endl);
 
Utility class to parse command line options. 
 
do echo Generating $dir eval D
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
then usage $script[input file[working directory[option]]] nWhere option can be N
 
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
 
then usage $script[input file[working directory[option]]] nWhere option can be E