Пример #1
0
        public static Matrix <T> Filled(int rows, int cols, T data)
        {
            GoodRange(rows, cols);
            T[] arr = new T[rows * cols];
            for (int i = 0; i < rows * cols; ++i)
            {
                arr[i] = data;
            }
            var container = new MatrixContainer <T>(rows, cols, arr);

            return(new Matrix <T>(container));
        }
Пример #2
0
 internal Matrix(MatrixContainer <T> container)
 {
     this.container = container;
 }
Пример #3
0
 internal Matrix(int rows, int columns)
 {
     container = new MatrixContainer <T>(rows, columns);
 }