It would be nice if EJML were able to handle matrices with zero dimensions.
Example:
A is 6 x 0
B = 0 x 6
A * B should result in a matrix of dimension 6 x 6 containing all zeros
B * A should result in a matrix of dimension 0 x 0
Matlab is able to handle this kind of thing:
>> A = zeros(6, 0);
>> B = zeros(0, 6);
>> A * B
ans =
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
>> B * A
ans =
[]
>> size(B * A)
ans =
0 0
This saves a lot of if statements when sizes of matrices happen to be zero.
Original issue reported on code.google.com by Koolen.T...@gmail.com on 29 Apr 2013 at 8:01
Original issue reported on code.google.com by
Koolen.T...@gmail.com
on 29 Apr 2013 at 8:01