cmatrix.Matrix.nilpotent

Matrix.nilpotent()

Boolean test to verify the nilpotence.

Returns
bint

Test the nilpotence of the self matrix.

Examples

>>> m=rand(4)
>>> m=m.triangle(1)
>>> print(m)
| +0.000 | +12.000 | +16.000 | +11.000 |
| +0.000 | +0.000 | +13.000 | +0.000 |
| +0.000 | +0.000 | +0.000 | +4.000 |
| +0.000 | +0.000 | +0.000 | +0.000 |
printed
>>> print(m.nilpotent())
True