Creates a new Matrix that stores the result of A+B @param B the matrix to add this this @return A+B
(Matrix B)
| 37 | * @return {@code A+B} |
| 38 | */ |
| 39 | public Matrix add(Matrix B) |
| 40 | { |
| 41 | Matrix toReturn = getThisSideMatrix(B); |
| 42 | toReturn.mutableAdd(1.0, B); |
| 43 | return toReturn; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Creates a new Matrix that stores the result of {@code A+B} |
nothing calls this directly
no test coverage detected