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

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

[Octave-bug-tracker] [bug #52342] vecnorm command


From: CH
Subject: [Octave-bug-tracker] [bug #52342] vecnorm command
Date: Mon, 6 Nov 2017 10:06:55 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Follow-up Comment #6, bug #52342 (project octave):

My analysis without any deeper interpreter knowledge would be, that for p=2 =>
p/2 = 1 and p=4 => p/2 = 2 either nothing, or a more efficient sqrt is used
than the general pow function (probably something similar for p=6).

In general, I guess the second variant is faster because it is better
vectorized.

So, then the abs should also be replaced in the 1- and Inf norm.

Best

atcl 

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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