cmatrix.Matrix.mnand

Matrix.mnand()

Realize a big nand between self matrix and mat

Parameters

type

Description

mat

Matrix*

the matrix operand

Returns
Matrix

The matrix obtained from a big nand between self matrix and given matrix argument

See also

op()

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.mnand(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