help-octave
[Top][All Lists]
Advanced

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

Re: Octave-C++ Api : Help and Doc needed


From: E L L I P S Y S
Subject: Re: Octave-C++ Api : Help and Doc needed
Date: Thu, 13 Oct 2011 06:30:34 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.6.5; x86_64; ; )

Le jeudi 13 octobre 2011, Martin Helm a écrit :
> Am Donnerstag, den 13.10.2011, 01:01 +0200 schrieb E L L I P S Y S:
> > Le mercredi 12 octobre 2011, Søren Hauberg a écrit :
> > > ons, 12 10 2011 kl. 19:03 +0200, skrev E L L I P S Y S:
> > > >    1- May someone indicate where to find API samples like a simple ls
> > > > 
> > > > computation?
> > > 
> > > There's a chapter (or is it an appendix?) in the manual about using the
> > > C++ API. Try reading that.
> > > 
> > > >         2- Do you consider it's a bad idea to link against liboctave? 
> > > > Should
> > > >         I
> > > > 
> > > > better call Octave programs through DFUN_DLD (which means I must
> > > > learn the octave langage) ?
> > > 
> > > Depends on what you want to do. I would not recommend against using
> > > only C++. However, keep in mind that the C++ API is designed to make
> > > it easy to implement the Octave language and not designed as a general
> > > purpose library.
> > > 
> > > Søren
> > > 

> 
> I think it will be easier if you link to a library which is by design
> meant to be used with a program you write (but of course just using
> octave as something like that is a cool idea). The octave api is
> considered not stable, so if you link to it be prepared that your
> bindings are easily broken from time to time, again an argument to use
> something which is meant for such use.
> The biggest strength of octave when linked to a program is exactly what
> you do not want to use, the scripting language.
> So maybe if you just want to solve ls (I think that means least squares
> here) you should have a look at gsl (which is also free gnu software,
> written in C so easy to integrate with a C++ program).
> http://www.gnu.org/s/gsl/
> since it is meant for linking to it, it has extensive documentation
> http://www.gnu.org/s/gsl/manual/html_node/
> http://www.gnu.org/s/gsl/manual/gsl-ref.ps.gz
> 
> Just my 2ct.

Dear Martin, Hello list,

Thank you for that answer, I did not know about gnu/gsl. It may better fit my 
needs !

-- 

Cordialement, Denis Gillain, http://www.ellipsys.fr
__________________________________________________

E      L      L      I      P      S      Y      S

+33 (0) 1 39 68 32 51 -  address@hidden
__________________________________________________


reply via email to

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