liboctave class specifications

Ken Massey kpmassey at gmail.com
Mon Apr 7 06:26:57 CDT 2008


I would like to use the liboctave library in my C++ programs, but I
cannot find an English version of:

  http://vision.kuee.kyoto-u.ac.jp/~hiroaki/numerical/octave-headers-html/classes.html

Specifically, I would like to do something like this:

  #include <octave/oct.h>

  double mydata x[10000];
  // C++ code to generate data
  Matrix A = Matrix (100, 100);
  // copy data from x into A
  // can I use memcpy, or even better, just set the data() pointer for
A to point to x ???

What is the internal storage mechanism for Octave matrices, i.e. row
or column major?  How about sparse matrices?  I would like to be able
to construct data with C++ and call octave functions to manipulate it,
similar to the way I may call BLAS or LAPACK functions with pointers
to the data.

Any help or info about online documentation/examples would be great.
Thanks,
Kenneth


More information about the Help-octave mailing list