Exemplo n.º 1
0
 public SquareMatrix <T> Visit(DiagonalMatrix <T> diagonalMatrix1, SquareMatrix <T> squareMatrix2)
 {
     T[] obtainedArray = SumMatrix(diagonalMatrix1, squareMatrix2);
     return(new SquareMatrix <T>(obtainedArray));
 }
Exemplo n.º 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);
Exemplo n.º 3
0
 public SquareMatrix <T> Visit(SymmetricMatrix <T> symmetricMatrix1, SquareMatrix <T> squareMatrix2)
 {
     T[] obtainedArray = SumMatrix(symmetricMatrix1, squareMatrix2);
     return(new SquareMatrix <T>(obtainedArray));
 }
Exemplo n.º 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);