title: Combining two double[] arrays into double[,]
body: <p>I frequently have two arrays that I need to combine to one matrix (same lenght and type). I was wondering whether there is a linq way that is more elegant than:</p>
  
  <pre><code>var result = new double[dt.Count, 2];
  
  for (int i = 0; i &lt; dt.Count; i++)
  {
      result[i, 0] = dts[i];
      result[i, 1] = dt[i];
  }
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>var result = dts.zip(dt, (a,b) =&gt; new{a,b})
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>var result = dts.Concat(dt).ToArray()
  </code></pre>
  
  <p>But neither do what I would like to do...</p>