Tue 08 Nov 2011 05:37:49 PM UTC, original submission:
In function ./src/xnorm.cc line 97 and 138 the function to calculate norms along rows or columns are defined.
This functions are not working if the type of norm is selected.
> norm(rand(4,3),"fro","cols")
error: invalid conversion from string to real scalar
> norm(rand(4,3),"fro","rows")
error: invalid conversion from string to real scalar
I think the problem is an incorrect handling of the 2 string arguments case:
Built-in Function: norm (A, P, OPT)
Because
> norm(rand(4,3),"rows")
and
> norm(rand(4,3),"cols")
work fine applying the l2 norm ("fro").
I tried to generate a patch but Ia m not yet successful.
|