def mulTest(size: Int): Unit = {
val b = BLAS.getInstance()
println(s"BLAS = $b")
val simMatrix1 = DenseMatrix.eye[Int](size)
println((simMatrix1 * simMatrix1).valueAt(0, 0))
}
1. NativeBLAS
----- code -----
mulTest(2000)
mulTest(2001)
----- result -----
BLAS = com.github.fommil.netlib.NativeSystemBLAS@72b6cbcc
1
BLAS = com.github.fommil.netlib.NativeSystemBLAS@72b6cbcc
0
2. F2jBlas
----- VM options -----
-Dcom.github.fommil.netlib.BLAS=com.github.fommil.netlib.F2jBLAS
-Dcom.github.fommil.netlib.LAPACK=com.github.fommil.netlib.F2jLAPACK
-Dcom.github.fommil.netlib.ARPACK=com.github.fommil.netlib.F2jARPACK
----- code -----
mulTest(2000)
mulTest(2001)
----- result -----
BLAS = com.github.fommil.netlib.F2jBLAS@4f970963
1
BLAS = com.github.fommil.netlib.F2jBLAS@4f970963
0
Thanks.