Read a matrix from a file in Scala Breeze
scala, scala-breeze, scalala
Solution
There's a way to read a csv file into densematrix
import breeze.linalg._
import java.io._
val matrix=csvread(new File("your file localtion"),',')
api:http://www.scalanlp.org/api/breeze/index.html#breeze.linalg.package
Problem
I want to read a tab-delimited text file into a Breeze DenseMatrix. I see in the ScalaDoc that this should be possible and there are a whole set of I/O classes, but I can't find any examples and it's hard to digest the ScalaDoc. Can someone provide a simple read/write example?