You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Tests if two arguments are both generic arrays and contain respective elements which are approximately the same value within a specified number of ULPs (units in the last place).
1563
+
*
1564
+
* ## Notes
1565
+
*
1566
+
* - The function differs from the `===` operator in that the function treats `-0` and `+0` as distinct and `NaNs` as the same.
1567
+
*
1568
+
* @param v1 - first input value
1569
+
* @param v2 - second input value
1570
+
* @param maxULP - maximum allowed ULP difference
1571
+
* @returns boolean indicating whether two arguments are approximately the same value
* Tests if two arguments are both Complex64Arrays and contain respective elements which are approximately the same value within a specified number of ULPs (units in the last place).
1591
+
*
1592
+
* ## Notes
1593
+
*
1594
+
* - The function differs from the `===` operator in that the function treats `-0` and `+0` as distinct and `NaNs` as the same.
1595
+
*
1596
+
* @param v1 - first input value
1597
+
* @param v2 - second input value
1598
+
* @param maxULP - maximum allowed ULP difference
1599
+
* @returns boolean indicating whether two arguments are approximately the same value
1600
+
*
1601
+
* @example
1602
+
* var Complex64Array = require( '@stdlib/array/complex64' );
1603
+
*
1604
+
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
1605
+
* var y = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
1606
+
*
1607
+
* var out = ns.isAlmostSameValueComplex64Array( x, y, 0 );
1608
+
* // returns true
1609
+
*
1610
+
* @example
1611
+
* var Complex64Array = require( '@stdlib/array/complex64' );
1612
+
*
1613
+
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
1614
+
* var y = new Complex64Array( [ 1.0, 2.0, 4.0, 4.0 ] );
1615
+
*
1616
+
* var out = ns.isAlmostSameValueComplex64Array( x, y, 1 );
* Tests if two arguments are both Complex128Arrays and contain respective elements which are approximately the same value within a specified number of ULPs (units in the last place).
1623
+
*
1624
+
* ## Notes
1625
+
*
1626
+
* - The function differs from the `===` operator in that the function treats `-0` and `+0` as distinct and `NaNs` as the same.
1627
+
*
1628
+
* @param v1 - first input value
1629
+
* @param v2 - second input value
1630
+
* @param maxULP - maximum allowed ULP difference
1631
+
* @returns boolean indicating whether two arguments are approximately the same value
1632
+
*
1633
+
* @example
1634
+
* var Complex128Array = require( '@stdlib/array/complex128' );
1635
+
*
1636
+
* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );
1637
+
* var y = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );
1638
+
*
1639
+
* var out = ns.isAlmostSameValueComplex128Array( x, y, 0 );
1640
+
* // returns true
1641
+
*
1642
+
* @example
1643
+
* var Complex128Array = require( '@stdlib/array/complex128' );
1644
+
*
1645
+
* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );
1646
+
* var y = new Complex128Array( [ 1.0, 2.0, 4.0, 4.0 ] );
1647
+
*
1648
+
* var out = ns.isAlmostSameValueComplex128Array( x, y, 1 );
* Tests if two arguments are both Float32Arrays and contain respective elements which are approximately the same value within a specified number of ULPs (units in the last place).
1655
+
*
1656
+
* ## Notes
1657
+
*
1658
+
* - The function differs from the `===` operator in that the function treats `-0` and `+0` as distinct and `NaNs` as the same.
1659
+
*
1660
+
* @param v1 - first input value
1661
+
* @param v2 - second input value
1662
+
* @param maxULP - maximum allowed ULP difference
1663
+
* @returns boolean indicating whether two arguments are approximately the same value
1664
+
*
1665
+
* @example
1666
+
* var Float32Array = require( '@stdlib/array/float32' );
1667
+
*
1668
+
* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
1669
+
* var y = new Float32Array( [ 1.0, 2.0, 3.0 ] );
1670
+
*
1671
+
* var out = ns.isAlmostSameValueFloat32Array( x, y, 0 );
1672
+
* // returns true
1673
+
*
1674
+
* @example
1675
+
* var Float32Array = require( '@stdlib/array/float32' );
1676
+
*
1677
+
* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
1678
+
* var y = new Float32Array( [ 1.0, 2.0, 4.0 ] );
1679
+
*
1680
+
* var out = ns.isAlmostSameValueFloat32Array( x, y, 1 );
* Tests if two arguments are both Float64Arrays and contain respective elements which are approximately the same value within a specified number of ULPs (units in the last place).
1687
+
*
1688
+
* ## Notes
1689
+
*
1690
+
* - The function differs from the `===` operator in that the function treats `-0` and `+0` as distinct and `NaNs` as the same.
1691
+
*
1692
+
* @param v1 - first input value
1693
+
* @param v2 - second input value
1694
+
* @param maxULP - maximum allowed ULP difference
1695
+
* @returns boolean indicating whether two arguments are approximately the same value
1696
+
*
1697
+
* @example
1698
+
* var Float64Array = require( '@stdlib/array/float64' );
1699
+
*
1700
+
* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );
1701
+
* var y = new Float64Array( [ 1.0, 2.0, 3.0 ] );
1702
+
*
1703
+
* var out = ns.isAlmostSameValueFloat64Array( x, y, 0 );
1704
+
* // returns true
1705
+
*
1706
+
* @example
1707
+
* var Float64Array = require( '@stdlib/array/float64' );
1708
+
*
1709
+
* var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );
1710
+
* var y = new Float64Array( [ 1.0, 2.0, 4.0 ] );
1711
+
*
1712
+
* var out = ns.isAlmostSameValueFloat64Array( x, y, 1 );
0 commit comments