title: How to convert single dimensional arrays to multi dimensional ones? (C#)
body: <p>I have to use a method which accepts double[,], but I only have a double[]. How can I convert it?</p>
  
  <p>Solution so far:</p>
  
  <pre><code>var array = new double[1, x.Length];
  foreach (var i in Enumerable.Range(0, x.Length))
  {
      array[0, i] = x;
  }
  </code></pre>