le(x: number,y: number,): boolean
Less than or equal comparison X <= Y.
Compares two inputs element-wise, returning true where elements in X are less than or equal to corresponding elements in Y.
Comparison between two numbers
Comparison between two numbers
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, 5), true);
Comparison between a number and an array
Comparison between a number and an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [5, 6, 3]), [true, true, false]);
Comparison between a number and a matrix
Comparison between a number and a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [[5, 6], [3, 5]]), [[true, true], [false, true]]);
Comparison between an array and a number
Comparison between an array and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([5, 6, 3], 5), [true, false, true]);
Comparison between a matrix and a number
Comparison between a matrix and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([[5, 6], [3, 5]], 5), [[true, false], [true, true]]);
le(x: number,y: array,): array<boolean>
Less than or equal comparison X <= Y.
Compares two inputs element-wise, returning true where elements in X are less than or equal to corresponding elements in Y.
Comparison between two numbers
Comparison between two numbers
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, 5), true);
Comparison between a number and an array
Comparison between a number and an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [5, 6, 3]), [true, true, false]);
Comparison between a number and a matrix
Comparison between a number and a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [[5, 6], [3, 5]]), [[true, true], [false, true]]);
Comparison between an array and a number
Comparison between an array and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([5, 6, 3], 5), [true, false, true]);
Comparison between a matrix and a number
Comparison between a matrix and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([[5, 6], [3, 5]], 5), [[true, false], [true, true]]);
y: array
Second operand for comparison
array<boolean>
The result of the comparison
le(x: array,y: number,): array<boolean>
Less than or equal comparison X <= Y.
Compares two inputs element-wise, returning true where elements in X are less than or equal to corresponding elements in Y.
Comparison between two numbers
Comparison between two numbers
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, 5), true);
Comparison between a number and an array
Comparison between a number and an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [5, 6, 3]), [true, true, false]);
Comparison between a number and a matrix
Comparison between a number and a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [[5, 6], [3, 5]]), [[true, true], [false, true]]);
Comparison between an array and a number
Comparison between an array and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([5, 6, 3], 5), [true, false, true]);
Comparison between a matrix and a number
Comparison between a matrix and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([[5, 6], [3, 5]], 5), [[true, false], [true, true]]);
x: array
First operand for comparison
array<boolean>
The result of the comparison
le(): array<boolean>
Less than or equal comparison X <= Y.
Compares two inputs element-wise, returning true where elements in X are less than or equal to corresponding elements in Y.
Comparison between two numbers
Comparison between two numbers
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, 5), true);
Comparison between a number and an array
Comparison between a number and an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [5, 6, 3]), [true, true, false]);
Comparison between a number and a matrix
Comparison between a number and a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [[5, 6], [3, 5]]), [[true, true], [false, true]]);
Comparison between an array and a number
Comparison between an array and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([5, 6, 3], 5), [true, false, true]);
Comparison between a matrix and a number
Comparison between a matrix and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([[5, 6], [3, 5]], 5), [[true, false], [true, true]]);
array<boolean>
The result of the comparison
le(x: number,y: matrix,): matrix<boolean>
Less than or equal comparison X <= Y.
Compares two inputs element-wise, returning true where elements in X are less than or equal to corresponding elements in Y.
Comparison between two numbers
Comparison between two numbers
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, 5), true);
Comparison between a number and an array
Comparison between a number and an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [5, 6, 3]), [true, true, false]);
Comparison between a number and a matrix
Comparison between a number and a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [[5, 6], [3, 5]]), [[true, true], [false, true]]);
Comparison between an array and a number
Comparison between an array and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([5, 6, 3], 5), [true, false, true]);
Comparison between a matrix and a number
Comparison between a matrix and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([[5, 6], [3, 5]], 5), [[true, false], [true, true]]);
y: matrix
Second operand for comparison
matrix<boolean>
The result of the comparison
le(x: matrix,y: number,): matrix<boolean>
Less than or equal comparison X <= Y.
Compares two inputs element-wise, returning true where elements in X are less than or equal to corresponding elements in Y.
Comparison between two numbers
Comparison between two numbers
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, 5), true);
Comparison between a number and an array
Comparison between a number and an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [5, 6, 3]), [true, true, false]);
Comparison between a number and a matrix
Comparison between a number and a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [[5, 6], [3, 5]]), [[true, true], [false, true]]);
Comparison between an array and a number
Comparison between an array and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([5, 6, 3], 5), [true, false, true]);
Comparison between a matrix and a number
Comparison between a matrix and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([[5, 6], [3, 5]], 5), [[true, false], [true, true]]);
x: matrix
First operand for comparison
matrix<boolean>
The result of the comparison
le(): matrix<boolean>
Less than or equal comparison X <= Y.
Compares two inputs element-wise, returning true where elements in X are less than or equal to corresponding elements in Y.
Comparison between two numbers
Comparison between two numbers
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, 5), true);
Comparison between a number and an array
Comparison between a number and an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [5, 6, 3]), [true, true, false]);
Comparison between a number and a matrix
Comparison between a number and a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(le(5, [[5, 6], [3, 5]]), [[true, true], [false, true]]);
Comparison between an array and a number
Comparison between an array and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([5, 6, 3], 5), [true, false, true]);
Comparison between a matrix and a number
Comparison between a matrix and a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(le([[5, 6], [3, 5]], 5), [[true, false], [true, true]]);
matrix<boolean>
The result of the comparison