Example #1
0
        public Matrix(double[][] m)
        {
            var rows    = m.Length;
            var columns = m[0].Length;

            _m = new double[rows, columns];
            for (int i = 0; i < m.Length; i++)
            {
                for (int j = 0; j < m[0].Length; j++)
                {
                    _m[i, j] = m[i][j];
                }
            }
            _decomposition = new LU();
        }
Example #2
0
 public Matrix(double[,] m)
 {
     _m             = m.Duplicate();
     _decomposition = new LU();
 }