예제 #1
0
 public SquareMatrix <T> Visit(DiagonalMatrix <T> diagonalMatrix1, SquareMatrix <T> squareMatrix2)
 {
     T[] obtainedArray = SumMatrix(diagonalMatrix1, squareMatrix2);
     return(new SquareMatrix <T>(obtainedArray));
 }
예제 #2
0
 /// <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);
예제 #3
0
 public SquareMatrix <T> Visit(SymmetricMatrix <T> symmetricMatrix1, SquareMatrix <T> squareMatrix2)
 {
     T[] obtainedArray = SumMatrix(symmetricMatrix1, squareMatrix2);
     return(new SquareMatrix <T>(obtainedArray));
 }
예제 #4
0
 /// <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);