GTK+ IOStream  Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Octave.H
Go to the documentation of this file.
1 /* Copyright 2000-2013 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16 */
17 #ifndef OCTAVE_H_
18 #define OCTAVE_H_
19 
20 //#ifndef OCTAVE_ERROR_OFFSET
21 //#define OCTAVE_ERROR_OFFSET -2000
22 //#endif
23 //#define GEN_ERROR_OCTAVE(errNo) OCTAVE_ERROR_OFFSET+errNo
24 
25 //#define OCTAVE_ERROR_INCORRECT_RETCOUNT GEN_ERROR_OCTAVE(-1)
26 //#define OCTAVE_ERROR_INCORRECT_RETCOUNT_STR string("Octave returned the incorrect number of elements - error")
27 
28 #include <Eigen/Dense>
29 #include <string>
30 #include <vector>
31 using namespace std;
32 
105 class Octave {
106 public:
110  Octave(const vector<string> &args);
111 
113  virtual ~Octave();
114 
120  template<class TYPE>
121  vector<Eigen::Matrix<TYPE, Eigen::Dynamic, Eigen::Dynamic> > runM(const char* commandName, vector<Eigen::Matrix<TYPE, Eigen::Dynamic, Eigen::Dynamic> > &in);
122 };
123 #endif // OCTAVE_H_