public SquareMatrix <T> Visit(DiagonalMatrix <T> diagonalMatrix1, SquareMatrix <T> squareMatrix2) { T[] obtainedArray = SumMatrix(diagonalMatrix1, squareMatrix2); return(new SquareMatrix <T>(obtainedArray)); }
/// <summary> /// Returns a square matrix which is the result of sum of square and diagonal matrexes /// </summary> private static SquareMatrix <T> Sum <T>(DiagonalMatrix <T> matrixA, SquareMatrix <T> matrixB) => Sum(matrixB, matrixA);
public SquareMatrix <T> Visit(SymmetricMatrix <T> symmetricMatrix1, SquareMatrix <T> squareMatrix2) { T[] obtainedArray = SumMatrix(symmetricMatrix1, squareMatrix2); return(new SquareMatrix <T>(obtainedArray)); }
/// <summary> /// Returns a square matrix which is the result of sum of square and symmetric matrexes /// </summary> private static SquareMatrix <T> Sum <T>(SymmetricMatrix <T> matrixA, SquareMatrix <T> matrixB) => Sum(matrixB, matrixA);