/// <summary> /// Creates matrix from 2-d Complex array. /// </summary> /// <param name="values"></param> public MatrixQ(Complex[,] values) { if (values == null) { Values = new ArrayList(); columnCount = 0; rowCount = 0; } rowCount = (int)values.GetLongLength(0); columnCount = (int)values.GetLongLength(1); Values = new ArrayList(rowCount); for (int i = 0; i < rowCount; i++) { Values.Add(new ArrayList(columnCount)); for (int j = 0; j < columnCount; j++) { ((ArrayList)Values[i]).Add(values[i, j]); } } }