help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

liboctave class specifications


From: Ken Massey
Subject: liboctave class specifications
Date: Mon, 7 Apr 2008 07:26:57 -0400

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]