1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
---
title: mtx_==
description: element-wise comparison for equality of two matrices
categories:
- object
pdcategory: Element Math
aliases:
- mtx_eq
see_also:
- mtx_isequal
- "mtx_!="
- "mtx_>"
- "mtx_>="
- "mtx_<"
- "mtx_<="
inlets:
1st:
- type: matrix
description: left-hand operand
2nd:
- type: matrix
description: right-hand operand
- type: float
description: right-hand operand
outlets:
1st:
- type: matrix
description: result
---
$$C_{m\times n} = (A_{m\times n} \stackrel{?}{=}^\circ B_{m\times n}) \quad \equiv \quad c_{ij} = (a_{ij} \stackrel{?}{=} b_{ij})$$
$$C_{m\times n} = (A_{m\times n} \stackrel{?}{=}^\circ b) \quad \equiv \quad c_{ij} = (a_{ij} \stackrel{?}{=} b)$$
## Examples
$$
[\begin{pmatrix}
1 & 0 \cr
0 & 2
\end{pmatrix} \stackrel{?}{=}^\circ \begin{pmatrix}
1 & 0 \cr
2 & 2
\end{pmatrix}] = \begin{pmatrix}
1 & 1 \cr
0 & 1
\end{pmatrix}
$$
|