/** check if A'A yields a symmetric matrix */
def testSymmetry(m:Int): Unit ={
val A = DenseMatrix.rand[Double](m,m)
val S = A.t*A
val diff = max(abs(S-S.t))
print("||C-C.t||_oo = "+diff)
}
with m=100 I got ||C-C.t||_oo = 2.4868995751603507E-14.
Do you also think this is a bit much for a 100x100 matrix A?
It is enough to fail the symmetry test in a symmetric eigenvalue decomposition.
I am using openblas.
Is this
(a) no problem,
(b) a breeze problem or
(c) a Java problem?
I have not seen the likes of this with C++.
Now C++ on Intel processors does all intermediate computations as long doubles and will only cut back
to a smaller type when the value is assigned to a variable (if I recall this correctly) while Java does
not do this. Can this be the reason?
--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-breeze...@googlegroups.com.
To post to this group, send email to scala-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-breeze/ccdc5b3d-c6bb-4f73-9688-e42a50d01958%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.