I have to use a method which accepts double[,], but I only have a double[]. How can I convert it?

Solution so far:

```
var array = new double[1, x.Length];
foreach (var i in Enumerable.Range(0, x.Length))
{
    array[0, i] = x;
}

```