GTK+ IOStream
Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
|
#include <Octave.H>
Public Member Functions | |
Octave (const vector< string > &args) | |
virtual | ~Octave () |
Destructor. More... | |
template<class TYPE > | |
vector< Eigen::Matrix< TYPE, Eigen::Dynamic, Eigen::Dynamic > > | runM (const char *commandName, vector< Eigen::Matrix< TYPE, Eigen::Dynamic, Eigen::Dynamic > > &in) |
Class to interface to GNU Octave (octave.org)
requires octave headers installed on the system
First implementation is limited to matrix inputs and outputs to arbitrary .m files.
Usage like so :
The Octave.C file must be compiled like so : g++ mkoctfile -p CFLAGS
mkoctfile -p INCFLAGS
pkg-config --cflags eigen3
-fPIC -c Octave.C
Alternatively, if you are using autotools, do the following (note if you link -lfftw3f elsewhere, you may need to comment out the -p FFTW_LIBS line to stop conflicts) :
Octave::Octave | ( | const vector< string > & | args | ) |
template vector< Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > > Octave::runM | ( | const char * | commandName, |
vector< Eigen::Matrix< TYPE, Eigen::Dynamic, Eigen::Dynamic > > & | in | ||
) |
TYPE | The Eigen::Matrix types to input and return |
commandName | The .m file name to run |
in | The vector of Eigen::Matrix (the vector of matrices) to input to the .m file. |
< Input variables to pass to Octave
< Output variables returned from Octave
Definition at line 50 of file Octave.C.