lessthanoptimal / ejml

A fast and easy to use linear algebra library written in Java for dense, sparse, real, and complex matrices.
https://ejml.org
565 stars 117 forks source link

0 matrix non symmetric #158

Closed HGuillemet closed 2 years ago

HGuillemet commented 2 years ago

A newly initialized matrix with only 0.0 si reported as non-symmetric by isSymmetric, due to the unchecked normalisation of the elements by CommonOps_DDRM.elementMaxAbs(m).

lessthanoptimal commented 2 years ago

Verified and fixed. Avoids division now. Also checked to see if the bug was cut and pasted elsewhere and didn't find other instances. Thanks for reporting it!