scalala / Scalala

Scalala has been superseded by dlwh/breeze. Scalala is a high performance numeric linear algebra library for Scala, with rich Matlab-like operators on vectors and matrices; a library of numerical routines; support for plotting.
http://groups.google.com/group/scalala
GNU Lesser General Public License v2.1
298 stars 30 forks source link

cblas_dgemm error in NativeBLAS #54

Open adamklein opened 12 years ago

adamklein commented 12 years ago

If I do:

val m1 = DenseMatrix.rand(10,10) val m2 = DenseMatrix.rand(10,10) m1 * m2

I get:

TransA must be 111, 112 or 113, but is set to -1TransB must be 111, 112 or 113, but is set to -1Parameter 2 to routine cblas_dgemm was incorrect ERROR in F2J JNI: getTrans() got n

and then JVM crashes silently. I have no trouble running MTJ or jblas code. Any ideas?

dlwh commented 12 years ago

looks like it's a bug in netlib, from what I can tell. we're passing in a "n" to tell it to not transpose the matrices, but it's somehow mapping "n" to -1 instead of 111.

-- David

On Wed, May 23, 2012 at 6:47 AM, Adam Klein reply@reply.github.com wrote:

If I do:

val m1 = DenseMatrix.rand(10,10) val m2 = DenseMatrix.rand(10,10) m1 * m2

I get:

TransA must be 111, 112 or 113, but is set to -1TransB must be 111, 112 or 113, but is set to -1Parameter 2 to routine cblas_dgemm was incorrect ERROR in F2J JNI: getTrans() got n

and then JVM crashes silently. I have no trouble running MTJ or jblas code. Any ideas?


Reply to this email directly or view it on GitHub: https://github.com/scalala/Scalala/issues/54