ne(x: number,y: number,): boolean
Not equal comparison X ~= Y.
Compares two inputs element-wise, returning true where elements in X are not equal to corresponding elements in Y.
Compare a number with an array
Compare a number with an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [5, 6, 3]), [false, true, true]);
Compare a number with a matrix
Compare a number with a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [[5, 6], [3, 5]]), [[false, true], [true, false]]);
Compare an array with a number
Compare an array with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([5, 6, 3], 5), [false, true, true]);
Compare a matrix with a number
Compare a matrix with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([[5, 6], [3, 5]], 5), [[false, true], [true, false]]);
ne(x: number,y: array,): boolean[]
Not equal comparison X ~= Y.
Compares two inputs element-wise, returning true where elements in X are not equal to corresponding elements in Y.
Compare a number with an array
Compare a number with an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [5, 6, 3]), [false, true, true]);
Compare a number with a matrix
Compare a number with a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [[5, 6], [3, 5]]), [[false, true], [true, false]]);
Compare an array with a number
Compare an array with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([5, 6, 3], 5), [false, true, true]);
Compare a matrix with a number
Compare a matrix with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([[5, 6], [3, 5]], 5), [[false, true], [true, false]]);
y: array
Second operand for comparison
ne(x: array,y: number,): boolean[]
Not equal comparison X ~= Y.
Compares two inputs element-wise, returning true where elements in X are not equal to corresponding elements in Y.
Compare a number with an array
Compare a number with an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [5, 6, 3]), [false, true, true]);
Compare a number with a matrix
Compare a number with a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [[5, 6], [3, 5]]), [[false, true], [true, false]]);
Compare an array with a number
Compare an array with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([5, 6, 3], 5), [false, true, true]);
Compare a matrix with a number
Compare a matrix with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([[5, 6], [3, 5]], 5), [[false, true], [true, false]]);
x: array
First operand for comparison
ne(): boolean[]
Not equal comparison X ~= Y.
Compares two inputs element-wise, returning true where elements in X are not equal to corresponding elements in Y.
Compare a number with an array
Compare a number with an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [5, 6, 3]), [false, true, true]);
Compare a number with a matrix
Compare a number with a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [[5, 6], [3, 5]]), [[false, true], [true, false]]);
Compare an array with a number
Compare an array with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([5, 6, 3], 5), [false, true, true]);
Compare a matrix with a number
Compare a matrix with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([[5, 6], [3, 5]], 5), [[false, true], [true, false]]);
ne(x: number,y: matrix,): boolean[][]
Not equal comparison X ~= Y.
Compares two inputs element-wise, returning true where elements in X are not equal to corresponding elements in Y.
Compare a number with an array
Compare a number with an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [5, 6, 3]), [false, true, true]);
Compare a number with a matrix
Compare a number with a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [[5, 6], [3, 5]]), [[false, true], [true, false]]);
Compare an array with a number
Compare an array with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([5, 6, 3], 5), [false, true, true]);
Compare a matrix with a number
Compare a matrix with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([[5, 6], [3, 5]], 5), [[false, true], [true, false]]);
y: matrix
Second operand for comparison
ne(x: matrix,y: number,): boolean[][]
Not equal comparison X ~= Y.
Compares two inputs element-wise, returning true where elements in X are not equal to corresponding elements in Y.
Compare a number with an array
Compare a number with an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [5, 6, 3]), [false, true, true]);
Compare a number with a matrix
Compare a number with a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [[5, 6], [3, 5]]), [[false, true], [true, false]]);
Compare an array with a number
Compare an array with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([5, 6, 3], 5), [false, true, true]);
Compare a matrix with a number
Compare a matrix with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([[5, 6], [3, 5]], 5), [[false, true], [true, false]]);
x: matrix
First operand for comparison
ne(): boolean[][]
Not equal comparison X ~= Y.
Compares two inputs element-wise, returning true where elements in X are not equal to corresponding elements in Y.
Compare a number with an array
Compare a number with an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [5, 6, 3]), [false, true, true]);
Compare a number with a matrix
Compare a number with a matrix
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne(5, [[5, 6], [3, 5]]), [[false, true], [true, false]]);
Compare an array with a number
Compare an array with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([5, 6, 3], 5), [false, true, true]);
Compare a matrix with a number
Compare a matrix with a number
import { assertEquals } from "jsr:@std/assert"; assertEquals(ne([[5, 6], [3, 5]], 5), [[false, true], [true, false]]);