min(Sparse,"r") and max(Sparse,"r") or with "c" always return a vector of zeros
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
min(Sparse,"r") and max(Sparse,"r") and or "c" always return a vector of zeros:
--> s = [
0. -0.3378177 0.2942845 -0.188785 0.
-0.1628774 0. -0.0638824 0. 0.
-0.1114302 0. 0. 0. 0.
0. 0. 0. 0.3626782 0.
0. 0.4274928 0. 0. 0.0285331
];
--> s = sparse(s);
--> min(s,"r")
ans =
( 1, 5) zero sparse matrix
--> min(s,"c")
ans =
( 5, 1) zero sparse matrix
--> max(s,"r")
ans =
( 1, 5) zero sparse matrix
--> max(s,"c")
ans =
( 5, 1) zero sparse matrix
ERROR LOG:
----------
none. Wrong results
HOW TO REPRODUCE THE BUG:
-------------------------
s = [
0. -0.3378177 0.2942845 -0.188785 0.
-0.1628774 0. -0.0638824 0. 0.
-0.1114302 0. 0. 0. 0.
0. 0. 0. 0.3626782 0.
0. 0.4274928 0. 0. 0.0285331
];
s = sparse(s);
min(s,"r")
min(s,"c")
max(s,"r")
max(s,"c")
OTHER INFORMATION:
------------------
These errors occur since the %sp_min and %sp_max overloads have been introduced in Scilab 5.4.
They are blocking to me.