Tue 17 Oct 2017 06:41:01 PM UTC, original submission:
many integral functions do not preserve single type in all cases. examples below:
matlab 2017a
Octave:
Generally speaking, for matlab compatibility type single should be preserved for any type single inputs for limits or waypoints but not for tolerances.
so for us seems it applies to:
integral
integral2
integral3
quad2d
dblquad
triplequad
quadl
quadcc
integral passes but it has a patch waiting (bug #42073) that will have it use quadcc. that patch has been updated to preserve single type no matter which underlying quad is called.
the other integral functions and quad2d already do a type check, so a patch that recasts the output as single when necessary should be easy. I can work on a patch for those with appropriate BISTs
|