Esempio n. 1
0
        private void Divide()
        {
            int middleRowIndex = (inputMatrix.StartRow + inputMatrix.EndRow) / 2;
            int middleColIndex = (inputMatrix.StartCol + inputMatrix.EndCol) / 2;

            A11 = new MatrixWrapper(this.inputMatrix.Matrix, this.inputMatrix.StartRow, middleRowIndex, inputMatrix.StartCol, middleColIndex);
            A12 = new MatrixWrapper(this.inputMatrix.Matrix, this.inputMatrix.StartRow, middleRowIndex, middleColIndex + 1, this.inputMatrix.EndCol);
            A21 = new MatrixWrapper(this.inputMatrix.Matrix, middleRowIndex + 1, this.inputMatrix.EndRow, inputMatrix.StartCol, middleColIndex);
            A22 = new MatrixWrapper(this.inputMatrix.Matrix, middleRowIndex + 1, this.inputMatrix.EndRow, middleColIndex + 1, this.inputMatrix.EndCol);
        }
Esempio n. 2
0
 public MatrixDivideResult(MatrixWrapper inputMatrix)
 {
     this.inputMatrix = inputMatrix;
     Divide();
 }