scala - Convert Array[Array[Double]] to Array[Double] -
how can convert array of arrays of doubles array of doubles using scala 2.10.4?
convert: array[array[double]] => array[double]
use flatten
:
val r: array[double] = doubledouble.flatten
how can convert array of arrays of doubles array of doubles using scala 2.10.4?
convert: array[array[double]] => array[double]
use flatten
:
val r: array[double] = doubledouble.flatten
Comments
Post a Comment