Skip to content

Commit

Permalink
feat: add isSameComplex64 to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jan 18, 2024
1 parent d5b056e commit cc219df
Show file tree
Hide file tree
Showing 27 changed files with 40 additions and 15 deletions.
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,7 @@ isRegExpString,"@stdlib/assert/is-regexp-string"
isRelativePath,"@stdlib/assert/is-relative-path"
isSafeInteger,"@stdlib/assert/is-safe-integer"
isSafeIntegerArray,"@stdlib/assert/is-safe-integer-array"
isSameComplex64,"@stdlib/assert/is-same-complex64"
isSameComplex64Array,"@stdlib/assert/is-same-complex64array"
isSameComplex128,"@stdlib/assert/is-same-complex128"
isSameComplex128Array,"@stdlib/assert/is-same-complex128array"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1932,8 +1932,9 @@ isRegExpString,"isRegExp"
isRelativePath,"isAbsolutePath"
isSafeInteger,"isInteger,isNumber"
isSafeIntegerArray,"isArray,isSafeInteger"
isSameComplex64,"isComplex64,isSameComplex128,isSameValue"
isSameComplex64Array,"isComplex64Array,isSameComplex128Array,isSameFloat32Array,isSameValue"
isSameComplex128,"isComplex128,isSameValue"
isSameComplex128,"isComplex128,isSameComplex64,isSameValue"
isSameComplex128Array,"isComplex128Array,isSameComplex64Array,isSameFloat64Array,isSameValue"
isSameFloat32Array,"isSameFloat64Array,isSameValue"
isSameFloat64Array,"isSameFloat32Array,isSameValue"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,7 @@ isRegExpString,"@stdlib/assert-is-regexp-string"
isRelativePath,"@stdlib/assert-is-relative-path"
isSafeInteger,"@stdlib/assert-is-safe-integer"
isSafeIntegerArray,"@stdlib/assert-is-safe-integer-array"
isSameComplex64,"@stdlib/assert-is-same-complex64"
isSameComplex64Array,"@stdlib/assert-is-same-complex64array"
isSameComplex128,"@stdlib/assert-is-same-complex128"
isSameComplex128Array,"@stdlib/assert-is-same-complex128array"
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/aliases/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/aliases/data/data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,7 @@ isRegExpString
isRelativePath
isSafeInteger
isSafeIntegerArray
isSameComplex64
isSameComplex64Array
isSameComplex128
isSameComplex128Array
Expand Down
12 changes: 12 additions & 0 deletions lib/node_modules/@stdlib/namespace/lib/namespace/i.js
Original file line number Diff line number Diff line change
Expand Up @@ -3866,6 +3866,18 @@ ns.push({
]
});

ns.push({
'alias': 'isSameComplex64',
'path': '@stdlib/assert/is-same-complex64',
'value': require( '@stdlib/assert/is-same-complex64' ),
'type': 'Function',
'related': [
'@stdlib/assert/is-complex64',
'@stdlib/assert/is-same-complex128',
'@stdlib/assert/is-same-value'
]
});

ns.push({
'alias': 'isSameComplex64Array',
'path': '@stdlib/assert/is-same-complex64array',
Expand Down
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,7 @@
"@stdlib/assert/is-relative-path",isRelativePath
"@stdlib/assert/is-safe-integer",isSafeInteger
"@stdlib/assert/is-safe-integer-array",isSafeIntegerArray
"@stdlib/assert/is-same-complex64",isSameComplex64
"@stdlib/assert/is-same-complex64array",isSameComplex64Array
"@stdlib/assert/is-same-complex128",isSameComplex128
"@stdlib/assert/is-same-complex128array",isSameComplex128Array
Expand Down

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/namespace/pkg2related/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1932,8 +1932,9 @@
"@stdlib/assert/is-relative-path","@stdlib/assert/is-absolute-path"
"@stdlib/assert/is-safe-integer","@stdlib/assert/is-integer,@stdlib/assert/is-number"
"@stdlib/assert/is-safe-integer-array","@stdlib/assert/is-array,@stdlib/assert/is-safe-integer"
"@stdlib/assert/is-same-complex64","@stdlib/assert/is-complex64,@stdlib/assert/is-same-complex128,@stdlib/assert/is-same-value"
"@stdlib/assert/is-same-complex64array","@stdlib/assert/is-complex64array,@stdlib/assert/is-same-complex128array,@stdlib/assert/is-same-float32array,@stdlib/assert/is-same-value"
"@stdlib/assert/is-same-complex128","@stdlib/assert/is-complex128,@stdlib/assert/is-same-value"
"@stdlib/assert/is-same-complex128","@stdlib/assert/is-complex128,@stdlib/assert/is-same-complex64,@stdlib/assert/is-same-value"
"@stdlib/assert/is-same-complex128array","@stdlib/assert/is-complex128array,@stdlib/assert/is-same-complex64array,@stdlib/assert/is-same-float64array,@stdlib/assert/is-same-value"
"@stdlib/assert/is-same-float32array","@stdlib/assert/is-same-float64array,@stdlib/assert/is-same-value"
"@stdlib/assert/is-same-float64array","@stdlib/assert/is-same-float32array,@stdlib/assert/is-same-value"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,7 @@
"@stdlib/assert/is-relative-path","@stdlib/assert-is-relative-path"
"@stdlib/assert/is-safe-integer","@stdlib/assert-is-safe-integer"
"@stdlib/assert/is-safe-integer-array","@stdlib/assert-is-safe-integer-array"
"@stdlib/assert/is-same-complex64","@stdlib/assert-is-same-complex64"
"@stdlib/assert/is-same-complex64array","@stdlib/assert-is-same-complex64array"
"@stdlib/assert/is-same-complex128","@stdlib/assert-is-same-complex128"
"@stdlib/assert/is-same-complex128array","@stdlib/assert-is-same-complex128array"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,7 @@
"@stdlib/assert-is-relative-path","@stdlib/assert/is-relative-path"
"@stdlib/assert-is-safe-integer","@stdlib/assert/is-safe-integer"
"@stdlib/assert-is-safe-integer-array","@stdlib/assert/is-safe-integer-array"
"@stdlib/assert-is-same-complex64","@stdlib/assert/is-same-complex64"
"@stdlib/assert-is-same-complex64array","@stdlib/assert/is-same-complex64array"
"@stdlib/assert-is-same-complex128","@stdlib/assert/is-same-complex128"
"@stdlib/assert-is-same-complex128array","@stdlib/assert/is-same-complex128array"
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3285,6 +3285,7 @@ isSafeIntegerArray,"var arr = [ -3.0, new Number(0.0), 2.0 ];\nvar bool = isSafe
isSafeIntegerArray.primitives,"var arr = [ -1.0, 10.0 ];\nvar bool = isSafeIntegerArray.primitives( arr )\narr = [ -1.0, 0.0, 5.0 ];\nbool = isSafeIntegerArray.primitives( arr )\narr = [ -3.0, new Number(-1.0) ];\nbool = isSafeIntegerArray.primitives( arr )\n"
isSafeIntegerArray.objects,"var arr = [ new Number(1.0), new Number(3.0) ];\nvar bool = isSafeIntegerArray.objects( arr )\narr = [ -1.0, 0.0, 3.0 ];\nbool = isSafeIntegerArray.objects( arr )\narr = [ 3.0, new Number(-1.0) ];\nbool = isSafeIntegerArray.objects( arr )\n"
isSameComplex64Array,"var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar bool = isSameComplex64Array( x, y )\nx = new Complex64Array( [ NaN, NaN, NaN, NaN ] );\ny = new Complex64Array( [ NaN, NaN, NaN, NaN ] );\nbool = isSameComplex64Array( x, y )\n"
isSameComplex128,"var x = new Complex128( 1.0, 2.0 );\nvar y = new Complex128( 1.0, 2.0 );\nvar bool = isSameComplex128( x, y )\nx = new Complex128( NaN, NaN );\ny = new Complex128( NaN, NaN );\nbool = isSameComplex128( x, y )\n"
isSameComplex128Array,"var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar bool = isSameComplex128Array( x, y )\nx = new Complex128Array( [ NaN, NaN, NaN, NaN ] );\ny = new Complex128Array( [ NaN, NaN, NaN, NaN ] );\nbool = isSameComplex128Array( x, y )\n"
isSameFloat32Array,"var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );\nvar y = new Float32Array( [ 1.0, 2.0, 3.0 ] );\nvar bool = isSameFloat32Array( x, y )\nx = new Float32Array( [ NaN, NaN, NaN ] );\ny = new Float32Array( [ NaN, NaN, NaN ] );\nbool = isSameFloat32Array( x, y )\n"
isSameFloat64Array,"var x = new Float64Array( [ 1.0, 2.0, 3.0 ] );\nvar y = new Float64Array( [ 1.0, 2.0, 3.0 ] );\nvar bool = isSameFloat64Array( x, y )\nx = new Float64Array( [ NaN, NaN, NaN ] );\ny = new Float64Array( [ NaN, NaN, NaN ] );\nbool = isSameFloat64Array( x, y )\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/help/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3284,6 +3284,7 @@ isSafeInteger.isObject,"\nisSafeInteger.isObject( value )\n Tests if a value
isSafeIntegerArray,"\nisSafeIntegerArray( value )\n Tests if a value is an array-like object containing only safe integers.\n\n An integer valued number is \"safe\" when the number can be exactly\n represented as a double-precision floating-point number.\n\n Parameters\n ----------\n value: any\n Value to test.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether value is an array-like object containing\n only safe integers.\n\n Examples\n --------\n > var arr = [ -3.0, new Number(0.0), 2.0 ];\n > var bool = isSafeIntegerArray( arr )\n true\n > arr = [ -3.0, '3.0' ];\n > bool = isSafeIntegerArray( arr )\n false\n\n\nisSafeIntegerArray.primitives( value )\n Tests if a value is an array-like object containing only primitive safe\n integer values.\n\n Parameters\n ----------\n value: any\n Value to test.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether value is an array-like object containing only\n primitive safe integer values.\n\n Examples\n --------\n > var arr = [ -1.0, 10.0 ];\n > var bool = isSafeIntegerArray.primitives( arr )\n true\n > arr = [ -1.0, 0.0, 5.0 ];\n > bool = isSafeIntegerArray.primitives( arr )\n true\n > arr = [ -3.0, new Number(-1.0) ];\n > bool = isSafeIntegerArray.primitives( arr )\n false\n\n\nisSafeIntegerArray.objects( value )\n Tests if a value is an array-like object containing only `Number` objects\n having safe integer values.\n\n Parameters\n ----------\n value: any\n Value to test.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether value is an array-like object containing only\n `Number` objects having safe integer values.\n\n Examples\n --------\n > var arr = [ new Number(1.0), new Number(3.0) ];\n > var bool = isSafeIntegerArray.objects( arr )\n true\n > arr = [ -1.0, 0.0, 3.0 ];\n > bool = isSafeIntegerArray.objects( arr )\n false\n > arr = [ 3.0, new Number(-1.0) ];\n > bool = isSafeIntegerArray.objects( arr )\n false\n\n See Also\n --------\n isArray, isSafeInteger\n"
isSafeIntegerArray.primitives,"\nisSafeIntegerArray.primitives( value )\n Tests if a value is an array-like object containing only primitive safe\n integer values.\n\n Parameters\n ----------\n value: any\n Value to test.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether value is an array-like object containing only\n primitive safe integer values.\n\n Examples\n --------\n > var arr = [ -1.0, 10.0 ];\n > var bool = isSafeIntegerArray.primitives( arr )\n true\n > arr = [ -1.0, 0.0, 5.0 ];\n > bool = isSafeIntegerArray.primitives( arr )\n true\n > arr = [ -3.0, new Number(-1.0) ];\n > bool = isSafeIntegerArray.primitives( arr )\n false"
isSafeIntegerArray.objects,"\nisSafeIntegerArray.objects( value )\n Tests if a value is an array-like object containing only `Number` objects\n having safe integer values.\n\n Parameters\n ----------\n value: any\n Value to test.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether value is an array-like object containing only\n `Number` objects having safe integer values.\n\n Examples\n --------\n > var arr = [ new Number(1.0), new Number(3.0) ];\n > var bool = isSafeIntegerArray.objects( arr )\n true\n > arr = [ -1.0, 0.0, 3.0 ];\n > bool = isSafeIntegerArray.objects( arr )\n false\n > arr = [ 3.0, new Number(-1.0) ];\n > bool = isSafeIntegerArray.objects( arr )\n false\n\n See Also\n --------\n isArray, isSafeInteger"
isSameComplex64,"\nisSameComplex64( v1, v2 )\n Tests if two arguments are both single-precision complex floating-point\n numbers and have the same value.\n\n The function differs from the `===` operator in that the function treats\n `-0` and `+0` as distinct and `NaNs` as the same.\n\n Parameters\n ----------\n v1: any\n First input value.\n\n v2: any\n Second input value.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether two arguments are the same.\n\n Examples\n --------\n > var x = new Complex64( 1.0, 2.0 );\n > var y = new Complex64( 1.0, 2.0 );\n > var bool = isSameComplex64( x, y )\n true\n\n > x = new Complex64( NaN, NaN );\n > y = new Complex64( NaN, NaN );\n > bool = isSameComplex64( x, y )\n true\n\n See Also\n --------\n isComplex64, isSameComplex128, isSameValue\n"
isSameComplex64Array,"\nisSameComplex64Array( v1, v2 )\n Tests if two arguments are both Complex64Arrays and have the same values.\n\n The function differs from the `===` operator in that the function treats\n `-0` and `+0` as distinct and `NaNs` as the same.\n\n Parameters\n ----------\n v1: any\n First input value.\n\n v2: any\n Second input value.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether two arguments are the same.\n\n Examples\n --------\n > var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\n > var y = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\n > var bool = isSameComplex64Array( x, y )\n true\n\n > x = new Complex64Array( [ NaN, NaN, NaN, NaN ] );\n > y = new Complex64Array( [ NaN, NaN, NaN, NaN ] );\n > bool = isSameComplex64Array( x, y )\n true\n\n See Also\n --------\n isComplex64Array, isSameComplex128Array, isSameFloat32Array, isSameValue\n"
isSameComplex128,"\nisSameComplex128( v1, v2 )\n Tests if two arguments are both double-precision complex floating-point\n numbers and have the same value.\n\n The function differs from the `===` operator in that the function treats\n `-0` and `+0` as distinct and `NaNs` as the same.\n\n Parameters\n ----------\n v1: any\n First input value.\n\n v2: any\n Second input value.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether two arguments are the same.\n\n Examples\n --------\n > var x = new Complex128( 1.0, 2.0 );\n > var y = new Complex128( 1.0, 2.0 );\n > var bool = isSameComplex128( x, y )\n true\n\n > x = new Complex128( NaN, NaN );\n > y = new Complex128( NaN, NaN );\n > bool = isSameComplex128( x, y )\n true\n\n See Also\n --------\n isComplex128, isSameValue\n"
isSameComplex128Array,"\nisSameComplex128Array( v1, v2 )\n Tests if two arguments are both Complex128Arrays and have the same values.\n\n The function differs from the `===` operator in that the function treats\n `-0` and `+0` as distinct and `NaNs` as the same.\n\n Parameters\n ----------\n v1: any\n First input value.\n\n v2: any\n Second input value.\n\n Returns\n -------\n bool: boolean\n Boolean indicating whether two arguments are the same.\n\n Examples\n --------\n > var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );\n > var y = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );\n > var bool = isSameComplex128Array( x, y )\n true\n\n > x = new Complex128Array( [ NaN, NaN, NaN, NaN ] );\n > y = new Complex128Array( [ NaN, NaN, NaN, NaN ] );\n > bool = isSameComplex128Array( x, y )\n true\n\n See Also\n --------\n isComplex128Array, isSameComplex64Array, isSameFloat64Array, isSameValue\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/help/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/info/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3285,6 +3285,7 @@ isSafeIntegerArray,"\nisSafeIntegerArray( value:any )\n Tests if a value is a
isSafeIntegerArray.primitives,"\nisSafeIntegerArray.primitives( value:any )\n Tests if a value is an array-like object containing only primitive safe\n integer values.\n"
isSafeIntegerArray.objects,"\nisSafeIntegerArray.objects( value:any )\n Tests if a value is an array-like object containing only `Number` objects\n having safe integer values.\n"
isSameComplex64Array,"\nisSameComplex64Array( v1:any, v2:any )\n Tests if two arguments are both Complex64Arrays and have the same values.\n"
isSameComplex128,"\nisSameComplex128( v1:any, v2:any )\n Tests if two arguments are both double-precision complex floating-point\n numbers and have the same value.\n"
isSameComplex128Array,"\nisSameComplex128Array( v1:any, v2:any )\n Tests if two arguments are both Complex128Arrays and have the same values.\n"
isSameFloat32Array,"\nisSameFloat32Array( v1:any, v2:any )\n Tests if two arguments are both Float32Arrays and have the same values.\n"
isSameFloat64Array,"\nisSameFloat64Array( v1:any, v2:any )\n Tests if two arguments are both Float64Arrays and have the same values.\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/info/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/signature/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3322,6 +3322,7 @@ isSafeIntegerArray,"isSafeIntegerArray( value )"
isSafeIntegerArray.primitives,"isSafeIntegerArray.primitives( value )"
isSafeIntegerArray.objects,"isSafeIntegerArray.objects( value )"
isSameComplex64Array,"isSameComplex64Array( v1, v2 )"
isSameComplex128,"isSameComplex128( v1, v2 )"
isSameComplex128Array,"isSameComplex128Array( v1, v2 )"
isSameFloat32Array,"isSameFloat32Array( v1, v2 )"
isSameFloat64Array,"isSameFloat64Array( v1, v2 )"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/signature/data/data.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3322,6 +3322,7 @@ isSafeIntegerArray,"isSafeIntegerArray( value:any )"
isSafeIntegerArray.primitives,"isSafeIntegerArray.primitives( value:any )"
isSafeIntegerArray.objects,"isSafeIntegerArray.objects( value:any )"
isSameComplex64Array,"isSameComplex64Array( v1:any, v2:any )"
isSameComplex128,"isSameComplex128( v1:any, v2:any )"
isSameComplex128Array,"isSameComplex128Array( v1:any, v2:any )"
isSameFloat32Array,"isSameFloat32Array( v1:any, v2:any )"
isSameFloat64Array,"isSameFloat64Array( v1:any, v2:any )"
Expand Down

Large diffs are not rendered by default.

0 comments on commit cc219df

Please sign in to comment.