cmatrix.Matrix.hermitian

Matrix.hermitian()

Boolean test to verify if the matrix is hermitian

Returns
bint

Test if the matrix is hermitian.

Examples

>>> m=Matrix(3,3)
>>> m[0,0]=1
>>> m[1,2]=1
>>> m[2,1]=1
>>> print(m)
| +1.000 | +0.000 | +0.000 |
| +0.000 | +0.000 | +1.000 |
| +0.000 | +1.000 | +0.000 |
printed
>>> print(m.hermitian())
True