Table of Contents

Unm

We can take the negative of a matrix. This takes the negative value of each element of the matrix

Example

Input

Example.Quanty
A = Matrix.New({{1,2},{3,4}})
B = -A
print(B)

Result

{ { -1      , -2      } ,
  { -3      , -4      } }

Table of contents