|
[
Permlink
| « Hide
]
Christian Semrau added a comment - 22/Feb/09 07:53 PM
According to my little tests, walking in optimized order and adding the pairwise products to the result matrix is much faster for very sparse matrices, but for a full matrix (every entry set to 1), it is about 50% slower than the current implementation. So the implementation might switch between the two algorithms. Also one might wish to walk the other matrix if it is more sparse than this.
You are right. It is probably even worse when compared to DenseRealMatrix which should be more cache-friendly than RealMatrixImpl.
It is also possible to walk through non-zero elements of both matrices. Could you provide a patch for this ? fixed in subversion repository as of r762117
thanks for the report |
||||||||||||||||||||||||||||||||||||||||||||||||||