title: assign a double matrix to CvMat opencv
body: <p>It is look trivial. I tried this</p>
  
  <p><code>double d[2];</code></p>
  
  <p><code>CvMat* cvdata;</code></p>
  
  <p><code>cvdata-&gt;data.db = d;</code></p>
  
  <p>when I using debugging mood it seems that only the first element assigned to cvdata.</p>
  
  <p>any suggestions?
  and what about 2-Dimensional array?</p>
  
  <p>thank you</p>