Re: [R] Unexpected errors in sparse Matrix arithmetic with zero-length dimensions

2019-02-15 Thread Martin Maechler
> Aaron Lun > on Sun, 10 Feb 2019 15:22:17 + writes: > Dear list, > The Matrix package exhibits some unexpected behaviour in its arithmetic > methods for the edge case of a sparse matrix with a dimension of zero > length. The example below is the most illustrative,

[R] Unexpected errors in sparse Matrix arithmetic with zero-length dimensions

2019-02-10 Thread Aaron Lun
Dear list, The Matrix package exhibits some unexpected behaviour in its arithmetic methods for the edge case of a sparse matrix with a dimension of zero length. The example below is the most illustrative, where changing the contents of the vector causes the subtraction to fail for a sparse matrix