I am using the Breeze library for matrices operations in Scala. Everything looks good but it cannot find an implicit at compilation time:
could not find implicit value for parameter bf: breeze.linalg.support.CanMapValues[breeze.linalg.Matrix[Int],Int,Double,That]
The offending function is this:
import breeze.linalg._ // this is the only import
def writeMatrixToCsv(path: String, matrix: Matrix[Int]) = csvwrite(new File(path), matrix.mapValues(_.toDouble), separator = ',')
I am not sure how to proceed - I looked for a default CanMapValues in the Breeze code but couldn't find it. How can I solve this? Thanks!