octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0


From: Rik
Subject: [Octave-bug-tracker] [bug #32885] norm(NaN,Inf) produce 0
Date: Mon, 15 Feb 2016 19:36:59 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #21, bug #32885 (project octave):

Is there a simpler way to achieve the same result?  I benchmarked the patch
and it is 10X slower than the existing solution.  Of course, even 10X is
rather small.


x = ones (1, 1e6);
x(1,1e5) = NaN;
tic; norm (x, Inf); toc


Old times were 2 ms, new times were ~20 ms.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32885>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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