스파크 전치...
import breeze.linalg._ val df = spark.sparkContext.parallelize(List((1.0,3.0,5.0), (2.0,4.0,6.0))).toDF() val darr = df.collect() val da = darr.map{ row => Array(row.getAs[Double](0), row.getAs[Double](1), row.getAs[Double](2) )} val ncol = da.transpose.length val nrow = da.length val dd = da.transpose.flatten val dv = new DenseMatrix(nrow, ncol, dd) // val rdd1 = spark.sparkContext.parallelize(..