help-octave
[Top][All Lists]
Advanced

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

Re: octave and gsl


From: Stefan van der Walt
Subject: Re: octave and gsl
Date: Wed, 29 Mar 2006 10:30:02 +0200
User-agent: Mutt/1.5.9i

On Wed, Mar 29, 2006 at 09:06:12AM +0200, Gorazd Brumen wrote:
> DEFUN_DLD (gn, args,  , " gn function") {
> 
>   ColumnVector res (1);
> 
>   res(1) = gsl_sf_bessel_Jnu (2, 3);
> 
>   return octave_value ( res );
> 
> }

C uses 0-based indexing, so you should use

res(0) = ...

in the assignment.

Stéfan



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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