6. Neg function

Genericity polymorphism ‘neg’ function

6.1. Returns

Matrix The opposite Matrix from self

6.2. Examples

>>> m=rand(3)
>>> print(m)
| +5.000 | +0.000 | +7.000 |
| +9.000 | +4.000 | +8.000 |
| +9.000 | +4.000 | +6.000 |
printed
>>> print(-m)
| -5.000 | -0.000 | -7.000 |
| -9.000 | -4.000 | -8.000 |
| -9.000 | -4.000 | -6.000 |
printed

6.3. See Also

cmatrix.Matrix.op()