help-octave
[Top][All Lists]
Advanced

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

Re: Regarding Standalone Program


From: Przemek Klosowski
Subject: Re: Regarding Standalone Program
Date: Wed, 30 Jul 2008 13:09:02 -0400 (EDT)

It seems to me that you are trying to write Octave code in C++, and it
simply doesn't work this way. Octave libraries provide a base
functionality: interface to underlying linear algebra libraries (BLAS
etc), and class structure that makes numerical arrays into first-class
objects, plus utility stuff related to parsing Octave code, etc. The
libraries also contain native C++ implementations of some
performance-sensitive numerical functions.

The Octave environment is then built on this foundation, by
implementing most of the functionality in Matlab/Octave language
script files (.m files). Those files cannot be directly called from
the C++ compiled code using Octave libraries---in order to use script
files you have to start up the Octave interpreter, and ask it to
interpert the .m files, and pick up the results. It works, but you
lose most advantages of the C++ compiled code.

The idea is to only use Octave libraries if you need the speed so much
that you are willing to give up a lot of convenience given by the
Octave interpreter. If you don't like this tradeoff, you should just
use Octave directly. 


reply via email to

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