Skip to content

Commit

Permalink
feat: add COMPLEX128_NAN to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jan 14, 2024
1 parent b4e9738 commit a97c806
Show file tree
Hide file tree
Showing 27 changed files with 37 additions and 14 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 @@ -1349,6 +1349,7 @@ COMPLEX64_NUM_BYTES,"@stdlib/constants/complex64/num-bytes"
COMPLEX64_ZERO,"@stdlib/constants/complex64/zero"
Complex64Array,"@stdlib/array/complex64"
Complex128,"@stdlib/complex/float64"
COMPLEX128_NAN,"@stdlib/constants/complex128/nan"
COMPLEX128_NUM_BYTES,"@stdlib/constants/complex128/num-bytes"
COMPLEX128_ZERO,"@stdlib/constants/complex128/zero"
Complex128Array,"@stdlib/array/complex128"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@ COMPLEX64_NUM_BYTES,"COMPLEX128_NUM_BYTES,FLOAT32_NUM_BYTES"
COMPLEX64_ZERO,"COMPLEX128_ZERO"
Complex64Array,"Complex128Array,complex,Complex64"
Complex128,"complex,Complex64"
COMPLEX128_NAN,""
COMPLEX128_NUM_BYTES,"COMPLEX64_NUM_BYTES,FLOAT64_NUM_BYTES"
COMPLEX128_ZERO,"COMPLEX64_ZERO"
Complex128Array,"Complex64Array,complex,Complex128"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@ COMPLEX64_NUM_BYTES,"@stdlib/constants-complex64-num-bytes"
COMPLEX64_ZERO,"@stdlib/constants-complex64-zero"
Complex64Array,"@stdlib/array-complex64"
Complex128,"@stdlib/complex-float64"
COMPLEX128_NAN,"@stdlib/constants-complex128-nan"
COMPLEX128_NUM_BYTES,"@stdlib/constants-complex128-num-bytes"
COMPLEX128_ZERO,"@stdlib/constants-complex128-zero"
Complex128Array,"@stdlib/array-complex128"
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 @@ -1349,6 +1349,7 @@ COMPLEX64_NUM_BYTES
COMPLEX64_ZERO
Complex64Array
Complex128
COMPLEX128_NAN
COMPLEX128_NUM_BYTES
COMPLEX128_ZERO
Complex128Array
Expand Down
10 changes: 10 additions & 0 deletions lib/node_modules/@stdlib/namespace/lib/namespace/c.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,16 @@ ns.push({
]
});

ns.push({
'alias': 'COMPLEX128_NAN',
'path': '@stdlib/constants/complex128/nan',
'value': require( '@stdlib/constants/complex128/nan' ),
'type': 'number',
'related': [
'@stdlib/constants/complex64/nan'
]
});

ns.push({
'alias': 'COMPLEX128_NUM_BYTES',
'path': '@stdlib/constants/complex128/num-bytes',
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 @@ -1349,6 +1349,7 @@
"@stdlib/constants/complex64/zero",COMPLEX64_ZERO
"@stdlib/array/complex64",Complex64Array
"@stdlib/complex/float64",Complex128
"@stdlib/constants/complex128/nan",COMPLEX128_NAN
"@stdlib/constants/complex128/num-bytes",COMPLEX128_NUM_BYTES
"@stdlib/constants/complex128/zero",COMPLEX128_ZERO
"@stdlib/array/complex128",Complex128Array
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@
"@stdlib/constants/complex64/zero","@stdlib/constants/complex128/zero"
"@stdlib/array/complex64","@stdlib/array/complex128,@stdlib/complex/cmplx,@stdlib/complex/float32"
"@stdlib/complex/float64","@stdlib/complex/cmplx,@stdlib/complex/float32"
"@stdlib/constants/complex128/nan",""
"@stdlib/constants/complex128/num-bytes","@stdlib/constants/complex64/num-bytes,@stdlib/constants/float64/num-bytes"
"@stdlib/constants/complex128/zero","@stdlib/constants/complex64/zero"
"@stdlib/array/complex128","@stdlib/array/complex64,@stdlib/complex/cmplx,@stdlib/complex/float64"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@
"@stdlib/constants/complex64/zero","@stdlib/constants-complex64-zero"
"@stdlib/array/complex64","@stdlib/array-complex64"
"@stdlib/complex/float64","@stdlib/complex-float64"
"@stdlib/constants/complex128/nan","@stdlib/constants-complex128-nan"
"@stdlib/constants/complex128/num-bytes","@stdlib/constants-complex128-num-bytes"
"@stdlib/constants/complex128/zero","@stdlib/constants-complex128-zero"
"@stdlib/array/complex128","@stdlib/array-complex128"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@
"@stdlib/constants-complex64-zero","@stdlib/constants/complex64/zero"
"@stdlib/array-complex64","@stdlib/array/complex64"
"@stdlib/complex-float64","@stdlib/complex/float64"
"@stdlib/constants-complex128-nan","@stdlib/constants/complex128/nan"
"@stdlib/constants-complex128-num-bytes","@stdlib/constants/complex128/num-bytes"
"@stdlib/constants-complex128-zero","@stdlib/constants/complex128/zero"
"@stdlib/array-complex128","@stdlib/array/complex128"
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 @@ -2392,6 +2392,7 @@ commonKeysIn,"var obj1 = { 'a': 1, 'b': 2 };\nvar obj2 = { 'a': 1, 'b': 2, 'c':
complex,"var z = complex( 5.0, 3.0, 'float64' )\nz = complex( 5.0, 3.0, 'float32' )\n"
Complex64,"var z = new Complex64( 5.0, 3.0 )\nz.re\nz.im\n"
COMPLEX64_NUM_BYTES,"COMPLEX64_NUM_BYTES\n"
COMPLEX64_ZERO,"COMPLEX64_ZERO\n"
Complex128,"var z = new Complex128( 5.0, 3.0 )\nz.re\nz.im\n"
COMPLEX128_NUM_BYTES,"COMPLEX128_NUM_BYTES\n"
COMPLEX128_ZERO,"COMPLEX128_ZERO\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.

3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/repl/help/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2394,8 +2394,9 @@ Complex64,"\nComplex64( real, imag )\n 64-bit complex number constructor.\n\n
COMPLEX64_NUM_BYTES,"\nCOMPLEX64_NUM_BYTES\n Size (in bytes) of a 64-bit complex number.\n\n Examples\n --------\n > COMPLEX64_NUM_BYTES\n 8\n\n See Also\n --------\n COMPLEX128_NUM_BYTES, FLOAT32_NUM_BYTES\n"
COMPLEX64_ZERO,"\nCOMPLEX64_ZERO\n Single-precision complex floating-point zero.\n\n Examples\n --------\n > COMPLEX64_ZERO\n <Complex64>\n\n See Also\n --------\n COMPLEX128_ZERO\n"
Complex128,"\nComplex128( real, imag )\n 128-bit complex number constructor.\n\n Both the real and imaginary components are stored as double-precision\n floating-point numbers.\n\n Parameters\n ----------\n real: number\n Real component.\n\n imag: number\n Imaginary component.\n\n Returns\n -------\n z: Complex128\n 128-bit complex number.\n\n z.re: number\n Read-only property returning the real component.\n\n z.im: number\n Read-only property returning the imaginary component.\n\n z.BYTES_PER_ELEMENT\n Size (in bytes) of each component. Value: 8.\n\n z.byteLength\n Length (in bytes) of a complex number. Value: 16.\n\n Examples\n --------\n > var z = new Complex128( 5.0, 3.0 )\n <Complex128>\n > z.re\n 5.0\n > z.im\n 3.0\n\n See Also\n --------\n complex, Complex64\n"
COMPLEX128_NAN,"\nCOMPLEX128_NAN\n Canonical double-precision complex floating-point NaN.\n\n Examples\n --------\n > COMPLEX128_NAN\n <Complex128>\n\n"
COMPLEX128_NUM_BYTES,"\nCOMPLEX128_NUM_BYTES\n Size (in bytes) of a 128-bit complex number.\n\n Examples\n --------\n > COMPLEX128_NUM_BYTES\n 16\n\n See Also\n --------\n COMPLEX64_NUM_BYTES, FLOAT64_NUM_BYTES\n"
COMPLEX128_ZERO,"\nCOMPLEX128_ZERO\n Double-precision complex floating-point zero.\n\n Examples\n --------\n > COMPLEX128_ZERO\n <Complex128>\n\n"
COMPLEX128_ZERO,"\nCOMPLEX128_ZERO\n Double-precision complex floating-point zero.\n\n Examples\n --------\n > COMPLEX128_ZERO\n <Complex128>\n\n See Also\n --------\n COMPLEX64_ZERO\n"
complexarray,"\ncomplexarray( [dtype] )\n Creates a complex typed array.\n\n The function supports the following data types:\n\n - complex128: double-precision complex floating-point numbers\n - complex64: single-precision complex floating-point numbers\n\n The default typed array data type is `complex128`.\n\n Parameters\n ----------\n dtype: string (optional)\n Data type. Default: 'complex128'.\n\n Returns\n -------\n out: ComplexArray\n A complex number typed array.\n\n Examples\n --------\n > var arr = complexarray()\n <Complex128Array>\n > arr = complexarray( 'complex64' )\n <Complex64Array>\n\n\ncomplexarray( length[, dtype] )\n Returns a complex number typed array having a specified length.\n\n Parameters\n ----------\n length: integer\n Array length.\n\n dtype: string (optional)\n Data type. Default: 'complex128'.\n\n Returns\n -------\n out: ComplexArray\n A complex number typed array.\n\n Examples\n --------\n > var arr = complexarray( 5 )\n <Complex128Array>\n > arr = complexarray( 5, 'complex64' )\n <Complex64Array>\n\n\ncomplexarray( complexarray[, dtype] )\n Creates a complex number typed array from another complex number typed\n array.\n\n Parameters\n ----------\n complexarray: ComplexArray\n Complex number typed array from which to generate another complex number\n typed array.\n\n dtype: string (optional)\n Data type. Default: 'complex128'.\n\n Returns\n -------\n out: ComplexArray\n A complex number typed array.\n\n Examples\n --------\n > var arr1 = complexarray( [ 0.5, 0.5, 0.5, 0.5 ] );\n > var arr2 = complexarray( arr1, 'complex64' )\n <Complex64Array>\n\n\ncomplexarray( obj[, dtype] )\n Creates a complex number typed array from an array-like object or iterable.\n\n If an array-like object contains interleaved real and imaginary components,\n the array-like object must have a length which is a multiple of two.\n\n Parameters\n ----------\n obj: Object\n Array-like object or iterable from which to generate an array.\n\n dtype: string (optional)\n Data type. Default: 'complex128'.\n\n Returns\n -------\n out: ComplexArray\n A complex number typed array.\n\n Examples\n --------\n > var arr1 = [ 0.5, 0.5, 0.5, 0.5 ];\n > var arr2 = complexarray( arr1, 'complex64' )\n <Complex64Array>\n\n\ncomplexarray( buffer[, byteOffset[, length]][, dtype] )\n Returns a complex number typed array view of an ArrayBuffer.\n\n Parameters\n ----------\n buffer: ArrayBuffer\n Underlying ArrayBuffer.\n\n byteOffset: integer (optional)\n Integer byte offset specifying the location of the first array element.\n Default: 0.\n\n length: integer (optional)\n View length. If not provided, the view spans from the byteOffset to\n the end of the underlying ArrayBuffer.\n\n dtype: string (optional)\n Data type. Default: 'complex128'.\n\n Returns\n -------\n out: ComplexArray\n A complex number typed array.\n\n Examples\n --------\n > var buf = new ArrayBuffer( 64 );\n > var arr = complexarray( buf, 0, 8, 'complex64' )\n <Complex64Array>\n\n See Also\n --------\n typedarray, realarray\n"
complexarrayCtors,"\ncomplexarrayCtors( dtype )\n Returns a complex typed array constructor.\n\n The function returns constructors for the following data types:\n\n - complex64: single-precision floating-point complex numbers.\n - complex128: double-precision floating-point complex numbers.\n\n Parameters\n ----------\n dtype: string\n Data type.\n\n Returns\n -------\n out: Function|null\n Complex typed array constructor.\n\n Examples\n --------\n > var ctor = complexarrayCtors( 'complex64' )\n <Function>\n > ctor = complexarrayCtors( 'float32' )\n null\n\n See Also\n --------\n arrayCtors, typedarrayCtors, realarrayCtors\n"
complexarrayDataTypes,"\ncomplexarrayDataTypes()\n Returns a list of complex typed array data types.\n\n The output array contains the following data types:\n\n - complex64: single-precision floating-point complex numbers.\n - complex128: double-precision floating-point complex numbers.\n\n Returns\n -------\n out: Array<string>\n List of complex typed array data types.\n\n Examples\n --------\n > var out = complexarrayDataTypes()\n <Array>\n\n See Also\n --------\n arrayDataTypes, typedarrayDataTypes, realarrayDataTypes, ndarrayDataTypes\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 @@ -2392,6 +2392,7 @@ commonKeysIn,"\ncommonKeysIn( obj1:any, obj2:any[, ...obj:any] )\n Returns th
complex,"\ncomplex( real:number, imag:number[, dtype:string] )\n Creates a complex number.\n"
Complex64,"\nComplex64( real:number, imag:number )\n 64-bit complex number constructor.\n"
COMPLEX64_NUM_BYTES,"\nCOMPLEX64_NUM_BYTES\n Size (in bytes) of a 64-bit complex number.\n"
COMPLEX64_ZERO,"\nCOMPLEX64_ZERO\n Single-precision complex floating-point zero.\n"
Complex128,"\nComplex128( real:number, imag:number )\n 128-bit complex number constructor.\n"
COMPLEX128_NUM_BYTES,"\nCOMPLEX128_NUM_BYTES\n Size (in bytes) of a 128-bit complex number.\n"
COMPLEX128_ZERO,"\nCOMPLEX128_ZERO\n Double-precision complex floating-point zero.\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 @@ -2397,6 +2397,7 @@ commonKeysIn,"commonKeysIn( obj1, obj2[, ...obj] )"
complex,"complex( real, imag[, dtype] )"
Complex64,"Complex64( real, imag )"
COMPLEX64_NUM_BYTES,"COMPLEX64_NUM_BYTES"
COMPLEX64_ZERO,"COMPLEX64_ZERO"
Complex128,"Complex128( real, imag )"
COMPLEX128_NUM_BYTES,"COMPLEX128_NUM_BYTES"
COMPLEX128_ZERO,"COMPLEX128_ZERO"
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 @@ -2397,6 +2397,7 @@ commonKeysIn,"commonKeysIn( obj1:any, obj2:any[, ...obj:any] )"
complex,"complex( real:number, imag:number[, dtype:string] )"
Complex64,"Complex64( real:number, imag:number )"
COMPLEX64_NUM_BYTES,"COMPLEX64_NUM_BYTES"
COMPLEX64_ZERO,"COMPLEX64_ZERO"
Complex128,"Complex128( real:number, imag:number )"
COMPLEX128_NUM_BYTES,"COMPLEX128_NUM_BYTES"
COMPLEX128_ZERO,"COMPLEX128_ZERO"
Expand Down

Large diffs are not rendered by default.

0 comments on commit a97c806

Please sign in to comment.