This funciton sums two matrices and return the resultant matrices.Keep in mind both matrices must have equal number of rows and columns.
Usage
matrixAdd(x,y)
Arguments
x
A numeric Matrix
y
A numeric Matrix
Value
returns the sum of x and y
Details
e.g.
[1] [2]
[1] 2 3 1st matrix that is X
[2] 5 7
[1] [2]
[1] 6 3 2nd matrix that is Y
[2] 1 9
Now, calling function...
matrixAdd(X,Y)
Then Tropical sum of Matrices will be...