Katsushiro

Untitled

Feb 14th, 2015
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1.     using namespace std;
  2.     char** argv;
  3.  
  4.     Matrix mat;
  5.  
  6.     octave_value_list in, out;
  7.    
  8.     in(0) = "../../../matrices/10.mat";
  9.  
  10.     if( octave_main(1, argv, 1) ) {
  11.         out = feval("PetscBinaryRead", in, 1);
  12.         mat = out(0).matrix_value();
  13.        
  14.         clean_up_and_exit (0);
  15.     } else {
  16.         cout << "Octave was not started correctly." << endl;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment