title: Convert Matrix to RDD - Apache Spark
body: <p>I have a DenseMatrix of 8 x 252. And an array of column names 252. I want to convert this densematrix to RDD.</p>
  
  <p>DenseMatrix:</p>
  
  <pre><code>2.00 3.00 ...
  3.00 3.01 ...
  </code></pre>
  
  <p>Column Array: <code>Array("Column1","Column2",...)</code></p>
  
  <p>I want to convert the above to Dataframe as</p>
  
  <pre><code>Column1 Column2   ..
  2.00    3.00      ..
  3.00    4.00      ..
  </code></pre>
  
  <p>Could anyone help me in this?
  <strong>If not Dataframe, atleast an RDD</strong></p>