cond([]) returns 1, while cond([],p) returns 0 even for p=2 (== cond([]))
@sgougeon)
Reported by Samuel GOUGEON (BUG DESCRIPTION:
----------------
-->cond([]) // equivalent to cond([],2) : 2-norm
ans =
1. <<<<<<<<<<<
-->cond([],1)
ans =
0.
-->cond([],2)
ans =
0. <<<<<<<<<<<
-->cond([],%inf)
ans =
0.
-->cond([],'fro')
ans =
0.
ERROR LOG:
----------
none. mismatching results according to the calling syntax
HOW TO REPRODUCE THE BUG:
-------------------------
cond([])
cond([],2)
OTHER INFORMATION:
------------------
* Same results with Scilab 6.0
* Octave returns always 0 for the [] input.
* Julia yields an error.
* In the Scilab's cond(A) implementation, the special case A==[] is processed and 1 is intentionally returned.