From 12bbdec52762ed066119099497b695f4b10b01d4 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Thu, 18 Dec 2025 02:41:28 +0000 Subject: [PATCH] feat: update `array/base/assert` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../array/base/assert/docs/types/index.d.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/node_modules/@stdlib/array/base/assert/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/assert/docs/types/index.d.ts index dd3daac104cc..6ad2f1b81606 100644 --- a/lib/node_modules/@stdlib/array/base/assert/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/array/base/assert/docs/types/index.d.ts @@ -22,6 +22,7 @@ import contains = require( '@stdlib/array/base/assert/contains' ); import hasAlmostEqualValues = require( '@stdlib/array/base/assert/has-almost-equal-values' ); +import hasAlmostSameValues = require( '@stdlib/array/base/assert/has-almost-same-values' ); import hasEqualValues = require( '@stdlib/array/base/assert/has-equal-values' ); import hasEqualValuesIndexed = require( '@stdlib/array/base/assert/has-equal-values-indexed' ); import hasSameValues = require( '@stdlib/array/base/assert/has-same-values' ); @@ -95,6 +96,27 @@ interface Namespace { */ hasAlmostEqualValues: typeof hasAlmostEqualValues; + /** + * Tests if two arrays have respective elements which are approximately the same value within a specified number of ULPs (units in the last place). + * + * ## Notes + * + * - If provided arrays of unequal length, the function returns `false`. + * + * @param x - first input array + * @param y - second input array + * @param maxULP - maximum allowed ULP difference + * @returns boolean indicating whether both arrays are approximately the same value + * + * @example + * var x = [ 0, 0, 1, 0 ]; + * var y = [ 0, 0, 1, 0 ]; + * + * var out = ns.hasAlmostSameValues( x, y, 0 ); + * // returns true + */ + hasAlmostSameValues: typeof hasAlmostSameValues; + /** * Tests if two arrays have equal values. *