cmatrix.Matrix.mxor¶
- Matrix.mxor()¶
Realize a big xor between self matrix and mat
Parameters
type
Description
mat
Matrix*
the matrix operand
- Returns
- Matrix
The matrix obtained from a big xor between self matrix and given matrix argument
See also
Examples
>>> m=Matrix(4,4,1) >>> n=rand_perm(4) >>> print(m) | +1.000 | +1.000 | +1.000 | +1.000 | | +1.000 | +1.000 | +1.000 | +1.000 | | +1.000 | +1.000 | +1.000 | +1.000 | | +1.000 | +1.000 | +1.000 | +1.000 | printed >>> print(n) | +0.000 | +0.000 | +0.000 | +1.000 | | +0.000 | +1.000 | +0.000 | +0.000 | | +0.000 | +0.000 | +1.000 | +0.000 | | +1.000 | +0.000 | +0.000 | +0.000 | printed >>> print(m.mxor(n)) | +1.000 | +1.000 | +1.000 | +0.000 | | +1.000 | +0.000 | +1.000 | +1.000 | | +1.000 | +1.000 | +0.000 | +1.000 | | +0.000 | +1.000 | +1.000 | +1.000 | printed