I have very simple problem. I made a very simple function for you to demonstrate my problem.
static void Main(string[] args) { double[,] mydouble
You are assigning values to the elements of your array parameter, but you have to assign y value to the array itself because its defined as out:
out
d = new double[1, 4];