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: Martin Helm
Subject: Re: Octave-C++ Api : Help and Doc needed
Date: Thu, 13 Oct 2011 01:23:27 +0200

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
> > 
> > _______________________________________________
> > Help-octave mailing list
> > address@hidden
> > https://mailman.cae.wisc.edu/listinfo/help-octave
> 
> 
> Dear Søren, Hello list,
> 
> Thank you for this quick answer !
> 
> I took a look at the manual, explaining mostly DFUN_DLD (in Oct-Files). The 
> part that interest me is "A.3 Standalone Program". 1 page out of 725, and 
> only 
> 2 samples, that's not enough to code.
> 
> It seems effectively that the C++ API is done for internal development 
> purpose 
> mainly. But looking at the (poor) doxygen doc of liboctave.so (a PDF file by 
> example), the API seem quite powerfull !
> 
> Thanks a lot for you point of view
> 

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.



reply via email to

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