title: How to convert a sequence variable into a matrix in Scala
body: <p>This should be easy, but I'm stuck. I'm trying to convert a <code>Seq[Seq[Double]]</code> type into a Breeze <code>DenseMatrix</code>. (all nested Seq[Double]'s have the same number of elements.)</p>
  
  <p>Converting a single sequence to a <code>DenseVector</code> is pretty easy:</p>
  
  <pre><code>val sss=Seq(2.3,3.4,2.0,1.0)
  val bbb=DenseVector(sss:_*)
  </code></pre>
  
  <p>Is there any similar approach to convert a <code>Seq[Seq[Double]]</code> type to a <code>DenseMatrix</code>? For example:</p>
  
  <pre><code>val sss=Seq(2.3,3.4,2.0,1.0)
  val sssM=Seq(sss,sss,sss)
  val bbb=DenseVector(sss:_*)
  //val bbm= DenseMatrix(sssM:_*:??)  //????
  </code></pre>