[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File
From: |
David Bateman |
Subject: |
[Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources |
Date: |
Wed, 08 Sep 2010 19:07:05 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.14 (Debian-3.0.14-1) |
Follow-up Comment #7, bug #30481 (project octave):
But cquad is calling the user function with a vector, while quadpack, by the
way its written is calling the user function with scalar arguments.. If the
user function is vectorrized, this is a huge win for cquad, at least with
Octave. A simple test to show what I mean with an oscillatory function :
octave:1> f = @(x) sin(1 ./ x);
octave:2> tic; quad(f,5e-4,1); toc
Elapsed time is 0.279176 seconds.
octave:3> tic; cquad(f,5e-4,1);toc
Elapsed time is 0.146284 seconds.
D.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30481>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources, Jaroslav Hajek, 2010/09/03
- [Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources, David Bateman, 2010/09/06
- [Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources, Jaroslav Hajek, 2010/09/06
- [Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources, David Bateman, 2010/09/08
- [Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources, Pedro Gonnet, 2010/09/08
- [Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources,
David Bateman <=
- [Octave-bug-tracker] [bug #30481] cquad integrator, Octave and Oct-File sources, Pedro Gonnet, 2010/09/14