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 49 50
|
---
title: mtx_<=
description: element-wise comparison for less-or-equalness of two matrices
categories:
- object
pdcategory: Element Math
aliases:
- mtx_le
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
---
Returns `1` for each element of \\(A\\) that is *less than or equal to* the corresponding element in \\(B\\).
$$C_{m\times n} = (A_{m\times n} \stackrel{?}{\le}^\circ B_{m\times n}) \quad \equiv \quad c_{ij} = (a_{ij} \stackrel{?}{\le} b_{ij})$$
$$C_{m\times n} = (A_{m\times n} \stackrel{?}{\le}^\circ b) \quad \equiv \quad c_{ij} = (a_{ij} \stackrel{?}{\le} b)$$
## Examples
$$
[\begin{pmatrix}
1 & 1 \cr
0 & 2
\end{pmatrix} \stackrel{?}{\le}^\circ \begin{pmatrix}
1 & 0 \cr
2 & 2
\end{pmatrix}] = \begin{pmatrix}
1 & 0 \cr
1 & 1
\end{pmatrix}
$$
|