neg (Matrix)
Returns a matrix with elements that are the negatives of input matrix elements.
Arguments
matrix0
is the initial Matrix.
Return values
matrix1
is the resulting Matrix.
Complexity
O(dimension)
Example
Output:
-1.000000,-3.000000,-2.000000,
-1.000000,-2.000000,3.000000,
-4.000000,6.000000,-6.000000,