spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yanwei Zhang <actuary_zh...@hotmail.com>
Subject Use BLAS object for matrix operation
Date Thu, 03 Nov 2016 23:04:11 GMT
I would like to use some matrix operations in the BLAS object defined in ml.linalg. But for
some reason, spark shell complains it cannot locate this object. I have constructed an example
below to illustrate the issue. Please advise how to fix this. Thanks .



import org.apache.spark.ml.linalg.{BLAS, DenseVector, Vector, Vectors}


val a = Vectors.dense(1.0, 2.0)
val b = Vectors.dense(2.0, 3.0)
BLAS.dot(a, b)


<console>:42: error: not found: value BLAS


Mime
View raw message