(
Jump to the original submission)
Sat 04 Feb 2017 05:31:48 PM UTC, comment #6:
I checked in a cset that uses case insensitive matching for the string value input to norm (http://hg.savannah.gnu.org/hgweb/octave/rev/eb5a162c1342). This also adds support for "-Inf". Fixed. Closing report.
|
Fri 03 Feb 2017 07:12:41 PM UTC, comment #5:
Good point. As long as we must accept strings to support "fro", we might as well be nice and accept "inf", "-inf". When making the change, I think we should also move to make this case insensitive so that "Inf", "inf", "INF" would all work.
|
Fri 03 Feb 2017 06:27:41 PM UTC, comment #4:
oh,... well... what about 'fro'?
I think octave's solution is superior.
|
Fri 03 Feb 2017 03:35:38 PM UTC, comment #3:
It's pretty easy to add support for the character string '-inf'. But should we go the other way and just forbid string inputs for the p-value input? That's what Matlab does and it seems fine.
|
Tue 31 Jan 2017 05:51:02 PM UTC, comment #2:
Please have a look at
https://de.mathworks.com/help/matlab/ref/norm.html
where we find the following table:
p Matrix Vector
1 max(sum(abs(X))) sum(abs(X))
2 max(svd(X)) sum(abs(X).^2)^(1/2)
Inf max(sum(abs(X'))) max(abs(X))
-Inf — min(abs(X))
|
Tue 31 Jan 2017 11:11:22 AM UTC, comment #1:
Before making this change, I'd like to understand why it is not possible for you to solve your problem by doing something like
|
Tue 31 Jan 2017 10:40:58 AM UTC, original submission:
I know, matlab does not support norm(x,'inf').
Instead one has to write norm(x,Inf).
Octave supports norm(x,'inf') but not norm(x,'-inf'),
although both norm(x,Inf) and norm(x,-Inf).
This is inconsistent.
Well, I ask for that extension because there is a good reason,
too difficult to explain here,
why i cannot use Inf in this context.
|
(Note: upload size limit is set to 16384 kB, after insertion of the required
escape characters.)
Attach File(s):
Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Follow 6 latest changes.