spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ritesh Kumar Singh <riteshoneinamill...@gmail.com>
Subject Returning breeze.linalg.DenseMatrix from method
Date Sun, 16 Nov 2014 23:14:53 GMT
Hi,

I have a method that returns DenseMatrix:
def func(str: String): DenseMatrix = {
    ...
    ...
}

But I keep getting this error:
*class DenseMatrix takes type parameters*

I tried this too:
def func(str: String): DenseMatrix(Int, Int, Array[Double]) = {
    ...
    ...
}
But this gives me this error:
*'=' expected but '(' found*

Any possible fixes?

Mime
View raw message