some sparse insertion with repeated index give incorrect results
Reported by Steer Serge
Originally assigned to Steer Serge
-- Bug description --
some sparse insertion with repeated index give incorrect results
-- Scilab error message --
none
-- How to reproduce the bug --
A=sparse(33);B=sparse([1 0 3]');ind=[1 1 1];A(ind)=B
returns
( 1, 1) zero sparse matrix
instead of
( 1, 1) sparse matrix
( 1, 1) 3.
note that
A=sparse(33);B=sparse([1 0 3]);ind=[1 1 1];A(ind)=B
gives the proper result