Re: Inf norm help problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Inf norm help problem

Daniel Sebald
On 03/02/2018 03:41 PM, Vic Norton wrote:
 > An experiment with GNU Octave, version 4.2.1:
 > octave> help norm
 > 'norm' is a built-in function from the file libinterp/corefcn/data.cc
 >   -- norm (A)
 >     If A is a vector or a scalar:
 >       If A is a vector or a scalar:
 >      P = `Inf' or "inf"
 >            `max (abs (A))’.
 >
 > octave> norm([1;2;3],'Inf')
 > error: norm: unrecognized option: Inf
 > octave> norm([1;2;3],"Inf")
 > error: norm: unrecognized option: Inf
 > octave> norm([1;2;3],'inf')
 > ans =  3
 > octave> norm([1;2;3],"inf")
 > ans =  3
 >
 > With MATLAB R2017b (9.3.0.713579)
 > 64-bit (maci64)
 > September 14, 2017
 > All four options work the way they are supposed to.

That's been addressed Vic:

https://savannah.gnu.org/bugs/?func=detailitem&item_id=50195

Should be in an upcoming release.

Thanks,

Dan


-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018.  More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------