bugGNU Octave - Bugs: bug #32877, Please add single precision lsode...


bug #32877: Please add single precision lsode function

Submitted by:  Sergey B Kirpichev <skirpichev>
Submitted on:  Tue 22 Mar 2011 12:44:09 PM UTC  
Category:  Interpreter Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 25 Mar 2019 09:18:27 AM UTC, comment #4: 

As a workaround consider using any ode solver written in m-code, e.g. ode45 :

>> [t, y] = ode45 (@(y_) y_*(1-y_), t=single(linspace(0,10)), single(0.1));
>> class (t)
ans = single
>> class (y)
ans = single

Carlo de Falco <cdf>
Project Member
Sun 24 Mar 2019 03:20:12 AM UTC, comment #3: 

same behavior in 5.1.0

Nicholas Jankowski <nrjank>
Thu 08 Dec 2016 04:09:12 AM UTC, comment #2: 

behavior unchanged in 4.2.0

Nicholas Jankowski <nrjank>
Thu 24 Mar 2011 05:22:56 AM UTC, comment #1: 

Confirmed in dev sources and downgraded to wishlist.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Tue 22 Mar 2011 12:44:09 PM UTC, original submission:  

Right now lsode() works only in double precision (regardless of initial data) and uses: libcruft/odepack/dlsode.f

An example:

>> y=lsode(@(y_) y_*(1-y_), single(0.1), t=single(linspace(0,10)));
>> class(y)
ans = double

There is already single precision FORTRAN code (libcruft/odepack/slsode.f), but it's not used.

Sergey B Kirpichev <skirpichev>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cdf (Posted a comment)
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by skirpichev (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-24 jordigh Severity3 - Normal => 1 - Wish
        Priority5 - Normal => 3 - Low
        StatusNone => Confirmed
        Release3.4.0 => dev

    Back to the top

    Powered by Savane 3.5