diff --git a/CHANGELOG.md b/CHANGELOG.md index 81a3172a..677b1730 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-07-15) +## Unreleased (2024-07-17)
@@ -2437,6 +2437,9 @@ A total of 13 people contributed to this release. Thank you to the following con
+- [`8d4c46b`](https://github.com/stdlib-js/stdlib/commit/8d4c46b10ca912401e0ff0caa37a17cd3c443c2f) - **refactor:** update paths _(by Athan Reines)_ +- [`ed9c0a5`](https://github.com/stdlib-js/stdlib/commit/ed9c0a5e55ff09af3dd6af8c38615480e2c1828e) - **refactor:** update paths _(by Athan Reines)_ +- [`18b3c79`](https://github.com/stdlib-js/stdlib/commit/18b3c79c5035c7082618b7379cd6576e64393a96) - **refactor:** update paths _(by Athan Reines)_ - [`7c17308`](https://github.com/stdlib-js/stdlib/commit/7c17308587cd0fbac9812f258e3cd774cbdfc8da) - **feat:** add `at`, `fill`, `filter`, and `toLocalestring` methods to `array/bool` [(#2607)](https://github.com/stdlib-js/stdlib/pull/2607) _(by Jaysukh Makvana, Athan Reines)_ - [`523b380`](https://github.com/stdlib-js/stdlib/commit/523b3805be86c1fd99d8e65a8f89cdcbe7ec1fa0) - **refactor:** update error message interpolation _(by Athan Reines)_ - [`1cba41b`](https://github.com/stdlib-js/stdlib/commit/1cba41b45734d186a349d7987028307144faf4a3) - **docs:** update examples _(by Athan Reines)_ diff --git a/base/accessor-getter/README.md b/base/accessor-getter/README.md index 95f2f56e..5baeddd5 100644 --- a/base/accessor-getter/README.md +++ b/base/accessor-getter/README.md @@ -46,8 +46,8 @@ Returns an accessor function for retrieving an element from an array-like object ```javascript var Complex64Array = require( '@stdlib/array/complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( [ 1, 2, 3, 4 ] ); diff --git a/base/accessor-getter/benchmark/benchmark.js b/base/accessor-getter/benchmark/benchmark.js index 9ff115a5..ad8fa4c0 100644 --- a/base/accessor-getter/benchmark/benchmark.js +++ b/base/accessor-getter/benchmark/benchmark.js @@ -29,9 +29,9 @@ var filledBy = require( './../../../filled-by' ); var Complex128Array = require( './../../../complex128' ); var Complex64Array = require( './../../../complex64' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var dtype = require( './../../../dtype' ); var pkg = require( './../package.json' ).name; var getter = require( './../lib' ); diff --git a/base/accessor-getter/docs/repl.txt b/base/accessor-getter/docs/repl.txt index 71c8fd8e..e92c83da 100644 --- a/base/accessor-getter/docs/repl.txt +++ b/base/accessor-getter/docs/repl.txt @@ -45,9 +45,9 @@ > var f = {{alias}}( 'complex64' ); > var v = f( {{alias:@stdlib/array/complex64}}( [ 1, 2, 3, 4 ] ), 1 ) - > var r = {{alias:@stdlib/complex/realf}}( v ) + > var r = {{alias:@stdlib/complex/float32/real}}( v ) 3.0 - > var i = {{alias:@stdlib/complex/imagf}}( v ) + > var i = {{alias:@stdlib/complex/float32/imag}}( v ) 4.0 See Also diff --git a/base/accessor-getter/lib/index.js b/base/accessor-getter/lib/index.js index 40f86177..7590cf31 100644 --- a/base/accessor-getter/lib/index.js +++ b/base/accessor-getter/lib/index.js @@ -25,8 +25,8 @@ * * @example * var Complex64Array = require( '@stdlib/array/complex64' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var dtype = require( '@stdlib/array/dtype' ); * var getter = require( '@stdlib/array/base/accessor-getter' ); * diff --git a/base/accessor-getter/lib/main.js b/base/accessor-getter/lib/main.js index ea3161c1..9194972b 100644 --- a/base/accessor-getter/lib/main.js +++ b/base/accessor-getter/lib/main.js @@ -40,7 +40,7 @@ var GETTERS = { * @example * var Complex128Array = require( '@stdlib/array/complex128' ); * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( [ 1, 2, 3, 4 ] ); * @@ -67,8 +67,8 @@ function getComplex128( arr, idx ) { * * @example * var Complex64Array = require( '@stdlib/array/complex64' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( [ 1, 2, 3, 4 ] ); * @@ -125,8 +125,8 @@ function getArrayLike( arr, idx ) { * * @example * var Complex64Array = require( '@stdlib/array/complex64' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var dtype = require( '@stdlib/array/dtype' ); * * var arr = new Complex64Array( [ 1, 2, 3, 4 ] ); diff --git a/base/accessor-getter/test/test.js b/base/accessor-getter/test/test.js index f6f5f87b..e34a5458 100644 --- a/base/accessor-getter/test/test.js +++ b/base/accessor-getter/test/test.js @@ -24,9 +24,9 @@ var tape = require( 'tape' ); var Complex128Array = require( './../../../complex128' ); var Complex64Array = require( './../../../complex64' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var zeroTo = require( './../../../base/zero-to' ); var getter = require( './../lib' ); diff --git a/base/accessor-setter/README.md b/base/accessor-setter/README.md index 9375aa6e..6d23e00d 100644 --- a/base/accessor-setter/README.md +++ b/base/accessor-setter/README.md @@ -47,8 +47,8 @@ Returns an accessor function for setting an element in an array-like object supp ```javascript var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( [ 1, 2, 3, 4 ] ); diff --git a/base/accessor-setter/benchmark/benchmark.js b/base/accessor-setter/benchmark/benchmark.js index 2e73779c..d22a1653 100644 --- a/base/accessor-setter/benchmark/benchmark.js +++ b/base/accessor-setter/benchmark/benchmark.js @@ -31,9 +31,9 @@ var Complex64Array = require( './../../../complex64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var dtype = require( './../../../dtype' ); var pkg = require( './../package.json' ).name; var setter = require( './../lib' ); diff --git a/base/accessor-setter/docs/repl.txt b/base/accessor-setter/docs/repl.txt index 8d108d86..3a69e0eb 100644 --- a/base/accessor-setter/docs/repl.txt +++ b/base/accessor-setter/docs/repl.txt @@ -50,9 +50,9 @@ > f( x, 1, new {{alias:@stdlib/complex/float32/ctor}}( 10.0, 11.0 ) ); > var v = x.get( 1 ) - > var r = {{alias:@stdlib/complex/realf}}( v ) + > var r = {{alias:@stdlib/complex/float32/real}}( v ) 10.0 - > var i = {{alias:@stdlib/complex/imagf}}( v ) + > var i = {{alias:@stdlib/complex/float32/imag}}( v ) 11.0 See Also diff --git a/base/accessor-setter/lib/index.js b/base/accessor-setter/lib/index.js index 7f2e430a..3f99b69a 100644 --- a/base/accessor-setter/lib/index.js +++ b/base/accessor-setter/lib/index.js @@ -26,8 +26,8 @@ * @example * var Complex64Array = require( '@stdlib/array/complex64' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var dtype = require( '@stdlib/array/dtype' ); * var setter = require( '@stdlib/array/base/accessor-setter' ); * diff --git a/base/accessor-setter/lib/main.js b/base/accessor-setter/lib/main.js index effba152..0e1ec2ee 100644 --- a/base/accessor-setter/lib/main.js +++ b/base/accessor-setter/lib/main.js @@ -41,7 +41,7 @@ var SETTERS = { * var Complex128Array = require( '@stdlib/array/complex128' ); * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( [ 1, 2, 3, 4 ] ); * @@ -70,8 +70,8 @@ function setComplex128( arr, idx, value ) { * @example * var Complex64Array = require( '@stdlib/array/complex64' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( [ 1, 2, 3, 4 ] ); * @@ -132,8 +132,8 @@ function setArrayLike( arr, idx, value ) { * @example * var Complex64Array = require( '@stdlib/array/complex64' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var dtype = require( '@stdlib/array/dtype' ); * * var arr = new Complex64Array( [ 1, 2, 3, 4 ] ); diff --git a/base/accessor-setter/test/test.js b/base/accessor-setter/test/test.js index 115a3220..5447a129 100644 --- a/base/accessor-setter/test/test.js +++ b/base/accessor-setter/test/test.js @@ -26,9 +26,9 @@ var Complex64Array = require( './../../../complex64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var zeroTo = require( './../../../base/zero-to' ); var setter = require( './../lib' ); diff --git a/base/accessors/test/test.js b/base/accessors/test/test.js index 76db8e27..fa08e947 100644 --- a/base/accessors/test/test.js +++ b/base/accessors/test/test.js @@ -24,8 +24,8 @@ var tape = require( 'tape' ); var Float64Array = require( './../../../float64' ); var Complex64Array = require( './../../../complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var getter = require( './../../../base/getter' ); var setter = require( './../../../base/setter' ); var accessorGetter = require( './../../../base/accessor-getter' ); diff --git a/base/arraylike2object/test/test.js b/base/arraylike2object/test/test.js index de8cb18e..afbcee1b 100644 --- a/base/arraylike2object/test/test.js +++ b/base/arraylike2object/test/test.js @@ -24,8 +24,8 @@ var tape = require( 'tape' ); var Float64Array = require( './../../../float64' ); var Complex64Array = require( './../../../complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arraylike2object = require( './../lib' ); diff --git a/base/at/docs/types/index.d.ts b/base/at/docs/types/index.d.ts index fad63707..48e6d372 100644 --- a/base/at/docs/types/index.d.ts +++ b/base/at/docs/types/index.d.ts @@ -33,7 +33,7 @@ import { Collection, AccessorArrayLike, Complex128Array, Complex64Array } from ' * @example * var Complex128Array = require( '@stdlib/array/complex128' ); * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); * @@ -63,8 +63,8 @@ declare function at( x: Complex128Array, index: number ): Complex128 | void; * * @example * var Complex128Array = require( '@stdlib/array/complex64' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); * diff --git a/base/copy/README.md b/base/copy/README.md index 3b05c3c8..74ca12a8 100644 --- a/base/copy/README.md +++ b/base/copy/README.md @@ -76,8 +76,8 @@ var bool = ( out === x ); ```javascript var Complex64Array = require( '@stdlib/array/complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var copy = require( '@stdlib/array/base/copy' ); // Create a complex number array: diff --git a/base/copy/examples/index.js b/base/copy/examples/index.js index dd8320a3..587e4e62 100644 --- a/base/copy/examples/index.js +++ b/base/copy/examples/index.js @@ -19,8 +19,8 @@ 'use strict'; var Complex64Array = require( './../../../complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var copy = require( './../lib' ); // Create a complex number array: diff --git a/base/copy/test/test.js b/base/copy/test/test.js index df20c591..5d224ec8 100644 --- a/base/copy/test/test.js +++ b/base/copy/test/test.js @@ -22,8 +22,8 @@ var tape = require( 'tape' ); var Complex64Array = require( './../../../complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var copy = require( './../lib' ); diff --git a/base/count-if/test/test.js b/base/count-if/test/test.js index fe153e7e..7acdfe97 100644 --- a/base/count-if/test/test.js +++ b/base/count-if/test/test.js @@ -25,7 +25,7 @@ var Complex128Array = require( './../../../complex128' ); var Int32Array = require( './../../../int32' ); var toAccessorArray = require( './../../../base/to-accessor-array' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var countIf = require( './../lib' ); diff --git a/base/count-same-value-zero/lib/main.js b/base/count-same-value-zero/lib/main.js index bca168e5..c0d67b3b 100644 --- a/base/count-same-value-zero/lib/main.js +++ b/base/count-same-value-zero/lib/main.js @@ -25,7 +25,7 @@ var isBooleanArray = require( './../../../base/assert/is-booleanarray' ); var isComplexLike = require( '@stdlib/assert/is-complex-like' ); var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex' ); var reinterpretBoolean = require( '@stdlib/strided/base/reinterpret-boolean' ); var isAccessorArray = require( './../../../base/assert/is-accessor-array' ); diff --git a/base/count-same-value/lib/main.js b/base/count-same-value/lib/main.js index d2e3d611..d52b6e10 100644 --- a/base/count-same-value/lib/main.js +++ b/base/count-same-value/lib/main.js @@ -30,7 +30,7 @@ var isAccessorArray = require( './../../../base/assert/is-accessor-array' ); var resolveGetter = require( './../../../base/resolve-getter' ); var isSameValue = require( '@stdlib/assert/is-same-value' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); // FUNCTIONS // diff --git a/base/filter/docs/types/index.d.ts b/base/filter/docs/types/index.d.ts index ac38ffbe..f6146966 100644 --- a/base/filter/docs/types/index.d.ts +++ b/base/filter/docs/types/index.d.ts @@ -248,7 +248,7 @@ declare function filter( x: Uint8ClampedArray, predica * @example * var isPositiveNumber = require( '@stdlib/assert/is-positive-number' ).isPrimitive; * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128Array = require( '@stdlib/array/complex128' ); * * function predicate( v ) { @@ -272,8 +272,8 @@ declare function filter( x: Complex128Array, predicate * * @example * var isPositiveNumber = require( '@stdlib/assert/is-positive-number' ).isPrimitive; -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64Array = require( '@stdlib/array/complex64' ); * * function predicate( v ) { diff --git a/base/first/README.md b/base/first/README.md index 4edb9c78..db35be7b 100644 --- a/base/first/README.md +++ b/base/first/README.md @@ -73,8 +73,8 @@ var out = first( x ); ```javascript var Complex64Array = require( '@stdlib/array/complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var first = require( '@stdlib/array/base/first' ); // Create a complex number array: diff --git a/base/first/examples/index.js b/base/first/examples/index.js index bc146fe6..a8ffb900 100644 --- a/base/first/examples/index.js +++ b/base/first/examples/index.js @@ -19,8 +19,8 @@ 'use strict'; var Complex64Array = require( './../../../complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var first = require( './../lib' ); // Create a complex number array: diff --git a/base/first/test/test.js b/base/first/test/test.js index 205b0c4b..13c6120d 100644 --- a/base/first/test/test.js +++ b/base/first/test/test.js @@ -22,8 +22,8 @@ var tape = require( 'tape' ); var Complex64Array = require( './../../../complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var first = require( './../lib' ); diff --git a/base/last/README.md b/base/last/README.md index c0bfcb78..e1e89b8a 100644 --- a/base/last/README.md +++ b/base/last/README.md @@ -73,8 +73,8 @@ var out = last( x ); ```javascript var Complex64Array = require( '@stdlib/array/complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var last = require( '@stdlib/array/base/last' ); // Create a complex number array: diff --git a/base/last/examples/index.js b/base/last/examples/index.js index 2b7ff6c5..a08e883e 100644 --- a/base/last/examples/index.js +++ b/base/last/examples/index.js @@ -19,8 +19,8 @@ 'use strict'; var Complex64Array = require( './../../../complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var last = require( './../lib' ); // Create a complex number array: diff --git a/base/last/test/test.js b/base/last/test/test.js index dbf5cd86..dde64cae 100644 --- a/base/last/test/test.js +++ b/base/last/test/test.js @@ -22,8 +22,8 @@ var tape = require( 'tape' ); var Complex64Array = require( './../../../complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var last = require( './../lib' ); diff --git a/base/mskput/test/test.js b/base/mskput/test/test.js index 32b159a9..000fc454 100644 --- a/base/mskput/test/test.js +++ b/base/mskput/test/test.js @@ -26,8 +26,8 @@ var Int32Array = require( './../../../int32' ); var BooleanArray = require( './../../../bool' ); var toAccessorArray = require( './../../../base/to-accessor-array' ); var Complex64 = require( '@stdlib/complex/float32' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var mskput = require( './../lib' ); diff --git a/base/one-to/docs/types/index.d.ts b/base/one-to/docs/types/index.d.ts index f24900f6..622f1f16 100644 --- a/base/one-to/docs/types/index.d.ts +++ b/base/one-to/docs/types/index.d.ts @@ -211,7 +211,7 @@ interface ZeroTo { * @example * var Complex128Array = require( './../../../../complex128' ); * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var out = new Complex128Array( 6 ); * @@ -242,8 +242,8 @@ interface ZeroTo { * * @example * var Complex64Array = require( './../../../../complex64' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var out = new Complex64Array( 6 ); * diff --git a/base/place/test/test.js b/base/place/test/test.js index 6753d41b..998adda1 100644 --- a/base/place/test/test.js +++ b/base/place/test/test.js @@ -26,8 +26,8 @@ var Int32Array = require( './../../../int32' ); var BooleanArray = require( './../../../bool' ); var toAccessorArray = require( './../../../base/to-accessor-array' ); var Complex64 = require( '@stdlib/complex/float32' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var place = require( './../lib' ); diff --git a/base/put/test/test.js b/base/put/test/test.js index d7003594..74eabc92 100644 --- a/base/put/test/test.js +++ b/base/put/test/test.js @@ -26,8 +26,8 @@ var Int32Array = require( './../../../int32' ); var BooleanArray = require( './../../../bool' ); var toAccessorArray = require( './../../../base/to-accessor-array' ); var Complex64 = require( '@stdlib/complex/float32' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var put = require( './../lib' ); diff --git a/base/reject/docs/types/index.d.ts b/base/reject/docs/types/index.d.ts index 86137af3..42c29b41 100644 --- a/base/reject/docs/types/index.d.ts +++ b/base/reject/docs/types/index.d.ts @@ -248,7 +248,7 @@ declare function reject( x: Uint8ClampedArray, predica * @example * var isPositiveNumber = require( '@stdlib/assert/is-positive-number' ).isPrimitive; * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128Array = require( '@stdlib/array/complex128' ); * * function predicate( v ) { @@ -272,8 +272,8 @@ declare function reject( x: Complex128Array, predicate * * @example * var isPositiveNumber = require( '@stdlib/assert/is-positive-number' ).isPrimitive; -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64Array = require( '@stdlib/array/complex64' ); * * function predicate( v ) { diff --git a/base/resolve-getter/test/test.js b/base/resolve-getter/test/test.js index 5600ca80..cd5aa6a4 100644 --- a/base/resolve-getter/test/test.js +++ b/base/resolve-getter/test/test.js @@ -26,9 +26,9 @@ var accessorArray = require( './../../../base/accessor' ); var Complex128Array = require( './../../../complex128' ); var Complex64Array = require( './../../../complex64' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var zeroTo = require( './../../../base/zero-to' ); var dtypes = require( './../../../typed-real-dtypes' ); var resolveGetter = require( './../lib' ); diff --git a/base/resolve-setter/test/test.js b/base/resolve-setter/test/test.js index fccc36b9..20c24dde 100644 --- a/base/resolve-setter/test/test.js +++ b/base/resolve-setter/test/test.js @@ -28,9 +28,9 @@ var Complex64Array = require( './../../../complex64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var dtypes = require( './../../../dtypes' ); var resolveGetter = require( './../../../base/resolve-getter' ); var resolveSetter = require( './../lib' ); diff --git a/base/take-map/test/test.main.js b/base/take-map/test/test.main.js index c3053766..a9752db9 100644 --- a/base/take-map/test/test.main.js +++ b/base/take-map/test/test.main.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var Complex64Array = require( './../../../complex64' ); var toAccessorArray = require( './../../../base/to-accessor-array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var takeMap = require( './../lib' ); diff --git a/base/take/test/test.main.js b/base/take/test/test.main.js index 2a3bc929..6f819f59 100644 --- a/base/take/test/test.main.js +++ b/base/take/test/test.main.js @@ -24,8 +24,8 @@ var tape = require( 'tape' ); var Complex64Array = require( './../../../complex64' ); var BooleanArray = require( './../../../bool' ); var toAccessorArray = require( './../../../base/to-accessor-array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var take = require( './../lib' ); diff --git a/base/zero-to/docs/types/index.d.ts b/base/zero-to/docs/types/index.d.ts index 6af2c8df..bb1f5489 100644 --- a/base/zero-to/docs/types/index.d.ts +++ b/base/zero-to/docs/types/index.d.ts @@ -211,7 +211,7 @@ interface ZeroTo { * @example * var Complex128Array = require( './../../../../complex128' ); * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var out = new Complex128Array( 6 ); * @@ -242,8 +242,8 @@ interface ZeroTo { * * @example * var Complex64Array = require( './../../../../complex64' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var out = new Complex64Array( 6 ); * diff --git a/complex128/README.md b/complex128/README.md index 922fb9b6..65c4702a 100644 --- a/complex128/README.md +++ b/complex128/README.md @@ -283,7 +283,7 @@ The iterator returned by an iterable must return either a complex number or an a var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Float64Array = require( '@stdlib/array/float64' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var iter; var arr; @@ -346,7 +346,7 @@ To invoke a function for each `src` value, provide a callback function. If `src` ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function map( z ) { return new Complex128( real(z)*2.0, imag(z)*2.0 ); @@ -378,7 +378,7 @@ or an array-like object containing real and imaginary components var Float64Array = require( '@stdlib/array/float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); // Return a callback which reuses allocated memory... function mapFcn() { @@ -427,7 +427,7 @@ If `src` is an array-like object containing interleaved real and imaginary compo var Float64Array = require( '@stdlib/array/float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function map( v ) { return v * 2.0; @@ -463,7 +463,7 @@ To set the callback execution context, provide a `thisArg`. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function map( z ) { this.count += 1; @@ -522,7 +522,7 @@ Returns an array element located at integer position (index) `i`, with support f ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -573,7 +573,7 @@ Copies a sequence of elements within the array starting at `start` and ending at ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -632,7 +632,7 @@ By default, `end` equals the number of array elements (i.e., one more than the l ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -691,7 +691,7 @@ When a `target`, `start`, and/or `end` index is negative, the respective index i ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -754,7 +754,7 @@ Returns an iterator for iterating over array key-value pairs. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = [ new Complex128( 1.0, -1.0 ), @@ -806,7 +806,7 @@ Returns a boolean indicating whether all elements pass a test. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { return ( real( v ) === imag( v ) ); @@ -865,7 +865,7 @@ Returns a modified typed array filled with a fill value. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -938,7 +938,7 @@ When a `start` and/or `end` index is negative, the respective index is determine ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -972,7 +972,7 @@ Returns a new array containing the elements of an array which pass a test implem ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { return ( real( v ) === imag( v ) ); @@ -1011,7 +1011,7 @@ To set the function execution context, provide a `thisArg`. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { this.count += 1; @@ -1047,7 +1047,7 @@ Returns the first element in an array for which a predicate function returns a t ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { return ( real( v ) === imag( v ) ); @@ -1080,7 +1080,7 @@ To set the function execution context, provide a `thisArg`. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { this.count += 1; @@ -1119,7 +1119,7 @@ Returns the index of the first element in an array for which a predicate functio ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { return ( real( v ) === imag( v ) ); @@ -1146,7 +1146,7 @@ To set the function execution context, provide a `thisArg`. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { this.count += 1; @@ -1179,7 +1179,7 @@ Returns the last element in an array for which a predicate function returns a tr ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { return ( real( v ) === imag( v ) ); @@ -1212,7 +1212,7 @@ To set the function execution context, provide a `thisArg`. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { this.count += 1; @@ -1251,7 +1251,7 @@ Returns the index of the last element in an array for which a predicate function ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { return ( real( v ) === imag( v ) ); @@ -1278,7 +1278,7 @@ To set the function execution context, provide a `thisArg`. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { this.count += 1; @@ -1377,7 +1377,7 @@ Returns an array element located at position (index) `i`. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1587,7 +1587,7 @@ Returns a new array with each element being the result of a provided callback fu ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function scale( v ) { return new Complex128( 2.0*real( v ), 2.0*imag( v ) ); @@ -1624,7 +1624,7 @@ To set the function execution context, provide a `thisArg`. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function scale( v ) { this.count += 1; @@ -1657,7 +1657,7 @@ Applies a provided callback function to each element of the array, in order, pas ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cadd = require( '@stdlib/math/base/ops/cadd' ); var arr = new Complex128Array( 3 ); @@ -1711,7 +1711,7 @@ Applies a provided callback function to each element of the array, in reverse or ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var cadd = require( '@stdlib/math/base/ops/cadd' ); var arr = new Complex128Array( 3 ); @@ -1765,7 +1765,7 @@ Reverses an array in-place. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -1813,7 +1813,7 @@ Sets one or more array elements. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1846,7 +1846,7 @@ By default, the method sets array elements starting at position (index) `i = 0`. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1879,7 +1879,7 @@ In addition to providing a complex number, to set one or more array elements, pr ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1909,7 +1909,7 @@ or interleaved real and imaginary components ```javascript var Float64Array = require( '@stdlib/array/float64' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1944,7 +1944,7 @@ Copies a portion of a typed array to a new typed array. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -1976,7 +1976,7 @@ im = imag( z ); By default, the method returns a typed array beginning with the first array element. To specify an alternative array index at which to begin, provide a `start` index (inclusive). ```javascript -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var real = require( '@stdlib/complex/real' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2001,7 +2001,7 @@ By default, the method returns a typed array which includes all array elements a ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2038,7 +2038,7 @@ Returns a boolean indicating whether at least one element passes a test. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { return ( real( v ) === imag( v ) ); @@ -2066,7 +2066,7 @@ To set the function execution context, provide a `thisArg`. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { this.count += 1; @@ -2099,7 +2099,7 @@ Sorts an array in-place. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function compare( a, b ) { var re1; @@ -2183,7 +2183,7 @@ Creates a new typed array view over the same underlying [`ArrayBuffer`][@stdlib/ ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2215,7 +2215,7 @@ im = imag( z ); By default, the method creates a typed array view beginning with the first array element. To specify an alternative array index at which to begin, provide a `begin` index (inclusive). ```javascript -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var real = require( '@stdlib/complex/real' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2240,7 +2240,7 @@ By default, the method creates a typed array view which includes all array eleme ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2298,7 +2298,7 @@ Returns a new typed array containing the elements in reversed order. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -2345,7 +2345,7 @@ Returns a new typed array containing the elements in sorted order. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); function compare( a, b ) { var re1; @@ -2446,7 +2446,7 @@ Returns an iterator for iterating over each value in a typed array. ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 2 ); arr.set( [ 1.0, -1.0 ], 0 ); @@ -2489,7 +2489,7 @@ Returns a new typed array with the element at a provided index replaced with a p ```javascript var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var arr = new Complex128Array( 3 ); diff --git a/complex128/benchmark/benchmark.every.length.js b/complex128/benchmark/benchmark.every.length.js index cfcd673d..b13c421c 100644 --- a/complex128/benchmark/benchmark.every.length.js +++ b/complex128/benchmark/benchmark.every.length.js @@ -25,7 +25,7 @@ var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.filter.length.js b/complex128/benchmark/benchmark.filter.length.js index 3cc0ea9a..f9c27f8a 100644 --- a/complex128/benchmark/benchmark.filter.length.js +++ b/complex128/benchmark/benchmark.filter.length.js @@ -25,7 +25,7 @@ var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.find.length.js b/complex128/benchmark/benchmark.find.length.js index 13a6a3ae..e02704d7 100644 --- a/complex128/benchmark/benchmark.find.length.js +++ b/complex128/benchmark/benchmark.find.length.js @@ -25,7 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var isComplex128 = require( '@stdlib/assert/is-complex128' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.find_index.length.js b/complex128/benchmark/benchmark.find_index.length.js index fe01d203..c1cdaf41 100644 --- a/complex128/benchmark/benchmark.find_index.length.js +++ b/complex128/benchmark/benchmark.find_index.length.js @@ -25,7 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.find_last.length.js b/complex128/benchmark/benchmark.find_last.length.js index d34d395f..33fd17f3 100644 --- a/complex128/benchmark/benchmark.find_last.length.js +++ b/complex128/benchmark/benchmark.find_last.length.js @@ -25,7 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var isComplex128 = require( '@stdlib/assert/is-complex128' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.find_last_index.length.js b/complex128/benchmark/benchmark.find_last_index.length.js index 7f743853..3628990e 100644 --- a/complex128/benchmark/benchmark.find_last_index.length.js +++ b/complex128/benchmark/benchmark.find_last_index.length.js @@ -25,7 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.for_each.length.js b/complex128/benchmark/benchmark.for_each.length.js index d6c4abdb..969829e0 100644 --- a/complex128/benchmark/benchmark.for_each.length.js +++ b/complex128/benchmark/benchmark.for_each.length.js @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.map.js b/complex128/benchmark/benchmark.map.js index e1734395..68ca7091 100644 --- a/complex128/benchmark/benchmark.map.js +++ b/complex128/benchmark/benchmark.map.js @@ -22,8 +22,8 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.some.length.js b/complex128/benchmark/benchmark.some.length.js index eae179f0..6d895e3f 100644 --- a/complex128/benchmark/benchmark.some.length.js +++ b/complex128/benchmark/benchmark.some.length.js @@ -25,7 +25,7 @@ var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.sort.js b/complex128/benchmark/benchmark.sort.js index 5da4b985..c29ec679 100644 --- a/complex128/benchmark/benchmark.sort.js +++ b/complex128/benchmark/benchmark.sort.js @@ -23,7 +23,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.sort.length.js b/complex128/benchmark/benchmark.sort.length.js index 13552c2c..dd0e4193 100644 --- a/complex128/benchmark/benchmark.sort.length.js +++ b/complex128/benchmark/benchmark.sort.length.js @@ -23,7 +23,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var pkg = require( './../package.json' ).name; diff --git a/complex128/benchmark/benchmark.to_sorted.js b/complex128/benchmark/benchmark.to_sorted.js index 54434278..455c7764 100644 --- a/complex128/benchmark/benchmark.to_sorted.js +++ b/complex128/benchmark/benchmark.to_sorted.js @@ -23,7 +23,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pkg = require( './../package.json' ).name; var Complex128Array = require( './../lib' ); diff --git a/complex128/benchmark/benchmark.to_sorted.length.js b/complex128/benchmark/benchmark.to_sorted.length.js index 4ef157e7..5df16e54 100644 --- a/complex128/benchmark/benchmark.to_sorted.length.js +++ b/complex128/benchmark/benchmark.to_sorted.length.js @@ -23,7 +23,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var pkg = require( './../package.json' ).name; diff --git a/complex128/docs/repl.txt b/complex128/docs/repl.txt index e55b5b03..d0d62e39 100644 --- a/complex128/docs/repl.txt +++ b/complex128/docs/repl.txt @@ -182,7 +182,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -222,7 +222,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 @@ -330,7 +330,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -364,7 +364,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -385,19 +385,19 @@ [ 0, ] > var re = {{alias:@stdlib/complex/real}}( v[ 1 ] ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( v[ 1 ] ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) -1.0 > v = it.next().value [ 1, ] > re = {{alias:@stdlib/complex/real}}( v[ 1 ] ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( v[ 1 ] ) + > im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) -2.0 > v = it.next().value [ 2, ] > re = {{alias:@stdlib/complex/real}}( v[ 1 ] ) 3.0 - > im = {{alias:@stdlib/complex/imag}}( v[ 1 ] ) + > im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) -3.0 > var bool = it.next().done true @@ -466,19 +466,19 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 > z = arr.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 > z = arr.get( 2 ) > re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 @@ -511,7 +511,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var out = arr.filter( predicate ) @@ -522,7 +522,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 2.0 @@ -554,14 +554,14 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var z = arr.find( predicate ) > var re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 @@ -593,7 +593,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var idx = arr.findIndex( predicate ) @@ -628,14 +628,14 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var z = arr.findLast( predicate ) > var re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 2.0 @@ -667,7 +667,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var idx = arr.findLastIndex( predicate ) @@ -726,7 +726,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -899,13 +899,13 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 > z = out.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -950,7 +950,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -995,7 +995,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1018,19 +1018,19 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 > z = arr.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = arr.get( 2 ) > re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 @@ -1061,14 +1061,14 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 > arr.set( new {{alias:@stdlib/complex/float64/ctor}}( 2.0, -2.0 ), 1 ); > z = arr.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -1102,13 +1102,13 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = out.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1138,7 +1138,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var bool = arr.some( predicate ) @@ -1178,19 +1178,19 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 > z = arr.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = arr.get( 2 ) > re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1225,13 +1225,13 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = out.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1277,19 +1277,19 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 3.0 > z = out.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) 2.0 > z = out.get( 2 ) > re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 @@ -1326,19 +1326,19 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 > z = out.get( 1 ) > re = {{alias:@stdlib/complex/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = out.get( 2 ) > re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imag}}( z ) + > im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1375,13 +1375,13 @@ > var re = {{alias:@stdlib/complex/real}}( v ) 1.0 - > var im = {{alias:@stdlib/complex/imag}}( v ) + > var im = {{alias:@stdlib/complex/float64/imag}}( v ) -1.0 > v = it.next().value > re = {{alias:@stdlib/complex/real}}( v ) 2.0 - > im = {{alias:@stdlib/complex/imag}}( v ) + > im = {{alias:@stdlib/complex/float64/imag}}( v ) -2.0 > var bool = it.next().done true @@ -1414,7 +1414,7 @@ > var re = {{alias:@stdlib/complex/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imag}}( z ) + > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 diff --git a/complex128/docs/types/index.d.ts b/complex128/docs/types/index.d.ts index 8394d0ec..26e77dc5 100644 --- a/complex128/docs/types/index.d.ts +++ b/complex128/docs/types/index.d.ts @@ -423,7 +423,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 4 ); * @@ -489,7 +489,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -516,7 +516,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); * @@ -551,7 +551,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -589,7 +589,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -621,7 +621,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -647,7 +647,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -679,7 +679,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -882,7 +882,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function scale( v, i ) { * return new Complex128( 2.0*real( v ), 2.0*imag( v ) ); @@ -917,7 +917,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * * var arr = new Complex128Array( 3 ); @@ -946,7 +946,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * * var arr = new Complex128Array( 3 ); @@ -973,7 +973,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); * @@ -1046,7 +1046,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 10 ); * @@ -1082,7 +1082,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); * @@ -1151,7 +1151,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -1176,7 +1176,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { * var re1; @@ -1250,7 +1250,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); * @@ -1335,7 +1335,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); * @@ -1383,7 +1383,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { * var re1; @@ -1470,7 +1470,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * var arr = new Complex128Array( 2 ); * * arr.set( [ 1.0, -1.0 ], 0 ); @@ -1513,7 +1513,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * * var arr = new Complex128Array( 3 ); @@ -1727,7 +1727,7 @@ interface Complex128ArrayConstructor { * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * var real = require( '@stdlib/complex/real' ); - * var imag = require( '@stdlib/complex/imag' ); + * var imag = require( '@stdlib/complex/float64/imag' ); * * function clbk( v ) { * return new Complex128( real(v)*2.0, imag(v)*2.0 ); diff --git a/complex128/docs/types/test.ts b/complex128/docs/types/test.ts index b5f85adb..32989614 100644 --- a/complex128/docs/types/test.ts +++ b/complex128/docs/types/test.ts @@ -18,15 +18,22 @@ /* eslint-disable @typescript-eslint/no-unused-expressions */ -import Complex128Array = require( './index' ); import Complex128 = require( '@stdlib/complex/float64/ctor' ); import ArrayBuffer = require( './../../../buffer' ); import real = require( '@stdlib/complex/real' ); -import imag = require( '@stdlib/complex/imag' ); +import imag = require( '@stdlib/complex/float64/imag' ); +import Complex128Array = require( './index' ); -const clbk = ( v: Complex128 ) => { +/** +* Callback function. +* +* @private +* @param v - input value +* @returns output value +*/ +function clbk( v: Complex128 ): Complex128 { return new Complex128( real( v ) * 2.0, imag( v ) * 2.0 ); -}; +} // TESTS // diff --git a/complex128/lib/from_array.js b/complex128/lib/from_array.js index d9a8d1ab..56d00979 100644 --- a/complex128/lib/from_array.js +++ b/complex128/lib/from_array.js @@ -22,7 +22,7 @@ var isComplexLike = require( '@stdlib/assert/is-complex-like' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // diff --git a/complex128/lib/from_iterator.js b/complex128/lib/from_iterator.js index eb1a4eab..27dd47df 100644 --- a/complex128/lib/from_iterator.js +++ b/complex128/lib/from_iterator.js @@ -24,7 +24,7 @@ var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var isComplexLike = require( '@stdlib/assert/is-complex-like' ); var format = require( '@stdlib/string/format' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // diff --git a/complex128/lib/from_iterator_map.js b/complex128/lib/from_iterator_map.js index a8c45d57..a7349760 100644 --- a/complex128/lib/from_iterator_map.js +++ b/complex128/lib/from_iterator_map.js @@ -24,7 +24,7 @@ var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var isComplexLike = require( '@stdlib/assert/is-complex-like' ); var format = require( '@stdlib/string/format' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); // MAIN // diff --git a/complex128/lib/main.js b/complex128/lib/main.js index 81c72bf7..dfa21cf2 100644 --- a/complex128/lib/main.js +++ b/complex128/lib/main.js @@ -43,7 +43,7 @@ var setReadOnlyAccessor = require( '@stdlib/utils/define-nonenumerable-read-only var Float64Array = require( './../../float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var floor = require( '@stdlib/math/base/special/floor' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); @@ -366,7 +366,7 @@ setReadOnly( Complex128Array, 'name', 'Complex128Array' ); * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function clbk( v ) { * return new Complex128( real(v)*2.0, imag(v)*2.0 ); @@ -551,7 +551,7 @@ setReadOnly( Complex128Array, 'of', function of() { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 10 ); * @@ -694,7 +694,7 @@ setReadOnly( Complex128Array.prototype, 'BYTES_PER_ELEMENT', Complex128Array.BYT * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 4 ); * @@ -860,7 +860,7 @@ setReadOnly( Complex128Array.prototype, 'entries', function entries() { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -910,7 +910,7 @@ setReadOnly( Complex128Array.prototype, 'every', function every( predicate, this * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); * @@ -1003,7 +1003,7 @@ setReadOnly( Complex128Array.prototype, 'fill', function fill( value, start, end * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -1066,7 +1066,7 @@ setReadOnly( Complex128Array.prototype, 'filter', function filter( predicate, th * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -1120,7 +1120,7 @@ setReadOnly( Complex128Array.prototype, 'find', function find( predicate, thisAr * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -1169,7 +1169,7 @@ setReadOnly( Complex128Array.prototype, 'findIndex', function findIndex( predica * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -1223,7 +1223,7 @@ setReadOnly( Complex128Array.prototype, 'findLast', function findLast( predicate * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -1315,7 +1315,7 @@ setReadOnly( Complex128Array.prototype, 'forEach', function forEach( fcn, thisAr * @example * var arr = new Complex128Array( 10 ); * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var z = arr.get( 0 ); * // returns @@ -1745,7 +1745,7 @@ setReadOnly( Complex128Array.prototype, 'lastIndexOf', function lastIndexOf( sea * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function scale( v, i ) { * return new Complex128( 2.0*real( v ), 2.0*imag( v ) ); @@ -1814,7 +1814,7 @@ setReadOnly( Complex128Array.prototype, 'map', function map( fcn, thisArg ) { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * * var arr = new Complex128Array( 3 ); @@ -1879,7 +1879,7 @@ setReadOnly( Complex128Array.prototype, 'reduce', function reduce( reducer, init * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * * var arr = new Complex128Array( 3 ); @@ -1940,7 +1940,7 @@ setReadOnly( Complex128Array.prototype, 'reduceRight', function reduceRight( red * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); * @@ -2041,7 +2041,7 @@ setReadOnly( Complex128Array.prototype, 'reverse', function reverse() { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 10 ); * @@ -2209,7 +2209,7 @@ setReadOnly( Complex128Array.prototype, 'set', function set( value ) { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); * @@ -2338,7 +2338,7 @@ setReadOnly( Complex128Array.prototype, 'slice', function slice( start, end ) { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { * return ( real( v ) === imag( v ) ); @@ -2384,7 +2384,7 @@ setReadOnly( Complex128Array.prototype, 'some', function some( predicate, thisAr * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { * var re1; @@ -2488,7 +2488,7 @@ setReadOnly( Complex128Array.prototype, 'sort', function sort( compareFcn ) { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); * @@ -2661,7 +2661,7 @@ setReadOnly( Complex128Array.prototype, 'toLocaleString', function toLocaleStrin * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); * @@ -2734,7 +2734,7 @@ setReadOnly( Complex128Array.prototype, 'toReversed', function toReversed() { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { * var re1; @@ -2861,7 +2861,7 @@ setReadOnly( Complex128Array.prototype, 'toString', function toString() { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var arr = new Complex128Array( 2 ); * * arr.set( [ 1.0, -1.0 ], 0 ); @@ -2983,7 +2983,7 @@ setReadOnly( Complex128Array.prototype, 'values', function values() { * * @example * var real = require( '@stdlib/complex/real' ); -* var imag = require( '@stdlib/complex/imag' ); +* var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * * var arr = new Complex128Array( 3 ); diff --git a/complex128/test/test.at.js b/complex128/test/test.at.js index 8b397f3a..e2647136 100644 --- a/complex128/test/test.at.js +++ b/complex128/test/test.at.js @@ -25,7 +25,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.entries.js b/complex128/test/test.entries.js index 88a0de59..df8550d6 100644 --- a/complex128/test/test.entries.js +++ b/complex128/test/test.entries.js @@ -27,7 +27,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var isArray = require( '@stdlib/assert/is-array' ); var isComplex128 = require( '@stdlib/assert/is-complex128' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.every.js b/complex128/test/test.every.js index afb80cff..bfe7ef4d 100644 --- a/complex128/test/test.every.js +++ b/complex128/test/test.every.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.filter.js b/complex128/test/test.filter.js index ca25a01e..cc9e51ac 100644 --- a/complex128/test/test.filter.js +++ b/complex128/test/test.filter.js @@ -26,7 +26,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var instanceOf = require( '@stdlib/assert/instance-of' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Float64Array = require( './../../float64' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.find.js b/complex128/test/test.find.js index ed9b2c01..faee2476 100644 --- a/complex128/test/test.find.js +++ b/complex128/test/test.find.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.find_index.js b/complex128/test/test.find_index.js index 25879086..b54536ed 100644 --- a/complex128/test/test.find_index.js +++ b/complex128/test/test.find_index.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.find_last.js b/complex128/test/test.find_last.js index c4e3e949..a2765b52 100644 --- a/complex128/test/test.find_last.js +++ b/complex128/test/test.find_last.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.find_last_index.js b/complex128/test/test.find_last_index.js index 09f54a1c..297cab09 100644 --- a/complex128/test/test.find_last_index.js +++ b/complex128/test/test.find_last_index.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.from.js b/complex128/test/test.from.js index 0c839c35..76eb93ad 100644 --- a/complex128/test/test.from.js +++ b/complex128/test/test.from.js @@ -27,10 +27,10 @@ var Complex64Array = require( './../../complex64' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.get.js b/complex128/test/test.get.js index abf1a53c..c1713854 100644 --- a/complex128/test/test.get.js +++ b/complex128/test/test.get.js @@ -25,7 +25,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var Complex128 = require( '@stdlib/complex/float32/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.map.js b/complex128/test/test.map.js index 3e1f8d8b..70703818 100644 --- a/complex128/test/test.map.js +++ b/complex128/test/test.map.js @@ -27,7 +27,7 @@ var identity = require( '@stdlib/utils/identity-function' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var instanceOf = require( '@stdlib/assert/instance-of' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Float64Array = require( './../../float64' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.reduce.js b/complex128/test/test.reduce.js index 397fb219..80225e71 100644 --- a/complex128/test/test.reduce.js +++ b/complex128/test/test.reduce.js @@ -26,7 +26,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var cadd = require( '@stdlib/math/base/ops/cadd' ); var instanceOf = require( '@stdlib/assert/instance-of' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.reduce_right.js b/complex128/test/test.reduce_right.js index 6cb86d7a..f5d27508 100644 --- a/complex128/test/test.reduce_right.js +++ b/complex128/test/test.reduce_right.js @@ -26,7 +26,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var cadd = require( '@stdlib/math/base/ops/cadd' ); var instanceOf = require( '@stdlib/assert/instance-of' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.set.js b/complex128/test/test.set.js index f318c54f..97603979 100644 --- a/complex128/test/test.set.js +++ b/complex128/test/test.set.js @@ -27,7 +27,7 @@ var ArrayBuffer = require( './../../buffer' ); var Float64Array = require( './../../float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.some.js b/complex128/test/test.some.js index c5690541..410b504e 100644 --- a/complex128/test/test.some.js +++ b/complex128/test/test.some.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.sort.js b/complex128/test/test.sort.js index a2d36b7b..6e6f7a27 100644 --- a/complex128/test/test.sort.js +++ b/complex128/test/test.sort.js @@ -26,7 +26,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var real = require( '@stdlib/complex/real' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var instanceOf = require( '@stdlib/assert/instance-of' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Float64Array = require( './../../float64' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.to_sorted.js b/complex128/test/test.to_sorted.js index baadc504..d443b693 100644 --- a/complex128/test/test.to_sorted.js +++ b/complex128/test/test.to_sorted.js @@ -26,7 +26,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var instanceOf = require( '@stdlib/assert/instance-of' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Float64Array = require( './../../float64' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.values.js b/complex128/test/test.values.js index 2e910af3..ed459b4d 100644 --- a/complex128/test/test.values.js +++ b/complex128/test/test.values.js @@ -27,7 +27,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var isComplex128 = require( '@stdlib/assert/is-complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Complex128Array = require( './../lib' ); diff --git a/complex64/README.md b/complex64/README.md index 977c8d2c..7b58f463 100644 --- a/complex64/README.md +++ b/complex64/README.md @@ -282,8 +282,8 @@ The iterator returned by an iterable must return either a complex number or an a ```javascript var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Float32Array = require( '@stdlib/array/float32' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var iter; var arr; @@ -345,8 +345,8 @@ To invoke a function for each `src` value, provide a callback function. If `src` ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function map( z ) { return new Complex64( realf(z)*2.0, imagf(z)*2.0 ); @@ -377,8 +377,8 @@ or an array-like object containing real and imaginary components ```javascript var Float32Array = require( '@stdlib/array/float32' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // Return a callback which reuses allocated memory... function mapFcn() { @@ -426,8 +426,8 @@ If `src` is an array-like object containing interleaved real and imaginary compo ```javascript var Float32Array = require( '@stdlib/array/float32' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function map( v ) { return v * 2.0; @@ -462,8 +462,8 @@ To set the callback execution context, provide a `thisArg`. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function map( z ) { this.count += 1; @@ -521,8 +521,8 @@ len = arr.length; Returns an array element located at integer position (index) `i`, with support for both nonnegative and negative integer positions. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 10 ); @@ -572,8 +572,8 @@ Copies a sequence of elements within the array starting at `start` and ending at ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 4 ); @@ -631,8 +631,8 @@ By default, `end` equals the number of array elements (i.e., one more than the l ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 4 ); @@ -690,8 +690,8 @@ When a `target`, `start`, and/or `end` index is negative, the respective index i ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 4 ); @@ -753,8 +753,8 @@ Returns an iterator for iterating over array key-value pairs. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = [ new Complex64( 1.0, -1.0 ), @@ -810,8 +810,8 @@ The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the Returns a boolean indicating whether all elements pass a test. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v ) { return ( realf( v ) === imagf( v ) ); @@ -869,8 +869,8 @@ Returns a modified typed array filled with a fill value. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 3 ); @@ -942,8 +942,8 @@ When a `start` and/or `end` index is negative, the respective index is determine ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 3 ); @@ -976,8 +976,8 @@ im = imagf( z ); Returns a new array containing the elements of an array which pass a test implemented by a predicate function. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v ) { return ( realf( v ) === imagf( v ) ); @@ -1015,8 +1015,8 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v, i ) { this.count += 1; @@ -1051,8 +1051,8 @@ var count = context.count; Returns the first element in an array for which a predicate function returns a truthy value. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); function predicate( v ) { @@ -1085,8 +1085,8 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v, i ) { this.count += 1; @@ -1124,8 +1124,8 @@ var count = context.count; Returns the index of the first element in an array for which a predicate function returns a truthy value. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v ) { return ( realf( v ) === imagf( v ) ); @@ -1151,8 +1151,8 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v, i ) { this.count += 1; @@ -1184,8 +1184,8 @@ var count = context.count; Returns the last element in an array for which a predicate function returns a truthy value. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); function predicate( v ) { @@ -1218,8 +1218,8 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v, i ) { this.count += 1; @@ -1257,8 +1257,8 @@ var count = context.count; Returns the index of the last element in an array for which a predicate function returns a truthy value. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v ) { return ( realf( v ) === imagf( v ) ); @@ -1284,8 +1284,8 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v, i ) { this.count += 1; @@ -1383,8 +1383,8 @@ var count = context.count; Returns an array element located at a nonnegative integer position (index) `i`. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 10 ); @@ -1593,8 +1593,8 @@ Returns a new array with each element being the result of a provided callback fu ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function scale( v ) { return new Complex64( 2.0*realf( v ), 2.0*imagf( v ) ); @@ -1630,8 +1630,8 @@ To set the function execution context, provide a `thisArg`. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function scale( v ) { this.count += 1; @@ -1663,8 +1663,8 @@ var count = context.count; Applies a provided callback function to each element of the array, in order, passing in the return value from the calculation on the preceding element and returning the accumulated result upon completion. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var caddf = require( '@stdlib/math/base/ops/caddf' ); var arr = new Complex64Array( 3 ); @@ -1693,7 +1693,7 @@ The reducer function is provided four arguments: By default, the function initializes the accumulated result to the first element in the array and passes the second array element as `value` during the first invocation of the provided callback. To begin accumulation from a different starting value and pass in the first array element as `value` during the first invocation of the provided callback, provide an `initialValue` argument. ```javascript -var realf = require( '@stdlib/complex/realf' ); +var realf = require( '@stdlib/complex/float32/real' ); function reducer( acc, v ) { acc += realf( v ); @@ -1717,8 +1717,8 @@ var z = arr.reduce( reducer, 0.0 ); Applies a provided callback function to each element of the array, in reverse order, passing in the return value from the calculation on the following element and returning the accumulated result upon completion. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var caddf = require( '@stdlib/math/base/ops/caddf' ); var arr = new Complex64Array( 3 ); @@ -1747,7 +1747,7 @@ The reducer function is provided four arguments: By default, the function initializes the accumulated result to the last element in the array and passes the second-last array element as `value` during the first invocation of the provided callback. To begin accumulation from a different starting value and pass in the last array element as `value` during the first invocation of the provided callback, provide an `initialValue` argument. ```javascript -var realf = require( '@stdlib/complex/realf' ); +var realf = require( '@stdlib/complex/float32/real' ); function reducer( acc, v ) { acc += realf( v ); @@ -1771,8 +1771,8 @@ var z = arr.reduceRight( reducer, 0.0 ); Reverses an array in-place. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 3 ); @@ -1819,8 +1819,8 @@ Sets one or more array elements. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 10 ); @@ -1852,8 +1852,8 @@ By default, the method sets array elements starting at position (index) `i = 0`. ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 10 ); @@ -1885,8 +1885,8 @@ In addition to providing a complex number, to set one or more array elements, pr ```javascript var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 10 ); @@ -1915,8 +1915,8 @@ or interleaved real and imaginary components ```javascript var Float32Array = require( '@stdlib/array/float32' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 10 ); @@ -1950,8 +1950,8 @@ A few notes: Copies a portion of a typed array to a new typed array. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -1983,8 +1983,8 @@ im = imagf( z ); By default, the method returns a typed array beginning with the first array element. To specify an alternative array index at which to begin, provide a `start` index (inclusive). ```javascript -var imagf = require( '@stdlib/complex/imagf' ); -var realf = require( '@stdlib/complex/realf' ); +var imagf = require( '@stdlib/complex/float32/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2007,8 +2007,8 @@ var im = imagf( z ); By default, the method returns a typed array which includes all array elements after `start`. To limit the number of array elements after `start`, provide an `end` index (exclusive). ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2044,8 +2044,8 @@ im = imagf( z ); Returns a boolean indicating whether at least one element passes a test. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v ) { return ( realf( v ) === imagf( v ) ); @@ -2072,8 +2072,8 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function predicate( v, i ) { this.count += 1; @@ -2105,8 +2105,8 @@ var count = context.count; Sorts an array in-place. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function compare( a, b ) { var re1; @@ -2189,8 +2189,8 @@ In contrast to real numbers, one cannot define a default order relation which is Creates a new typed array view over the same underlying [`ArrayBuffer`][@stdlib/array/buffer] and with the same underlying data type as the host array. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2222,8 +2222,8 @@ im = imagf( z ); By default, the method creates a typed array view beginning with the first array element. To specify an alternative array index at which to begin, provide a `begin` index (inclusive). ```javascript -var imagf = require( '@stdlib/complex/imagf' ); -var realf = require( '@stdlib/complex/realf' ); +var imagf = require( '@stdlib/complex/float32/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2246,8 +2246,8 @@ var im = imagf( z ); By default, the method creates a typed array view which includes all array elements after `begin`. To limit the number of array elements after `begin`, provide an `end` index (exclusive). ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2304,8 +2304,8 @@ The method supports the following arguments: Returns a new typed array containing the elements in reversed order. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 3 ); @@ -2351,8 +2351,8 @@ im = imagf( z ); Returns a new typed array containing the elements in sorted order. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); function compare( a, b ) { var re1; @@ -2452,8 +2452,8 @@ var str = arr.toString(); Returns an iterator for iterating over each value in a typed array. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var arr = new Complex64Array( 2 ); arr.set( [ 1.0, -1.0 ], 0 ); @@ -2495,8 +2495,8 @@ The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the Returns a new typed array with the element at a provided index replaced with a provided value. ```javascript -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var arr = new Complex64Array( 3 ); diff --git a/complex64/benchmark/benchmark.every.length.js b/complex64/benchmark/benchmark.every.length.js index 468e0c00..d83bd721 100644 --- a/complex64/benchmark/benchmark.every.length.js +++ b/complex64/benchmark/benchmark.every.length.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.filter.length.js b/complex64/benchmark/benchmark.filter.length.js index 106e899a..43d50db8 100644 --- a/complex64/benchmark/benchmark.filter.length.js +++ b/complex64/benchmark/benchmark.filter.length.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.find.length.js b/complex64/benchmark/benchmark.find.length.js index 359a566f..1cb75ba6 100644 --- a/complex64/benchmark/benchmark.find.length.js +++ b/complex64/benchmark/benchmark.find.length.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.find_index.length.js b/complex64/benchmark/benchmark.find_index.length.js index 297c4579..b0626972 100644 --- a/complex64/benchmark/benchmark.find_index.length.js +++ b/complex64/benchmark/benchmark.find_index.length.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.find_last.length.js b/complex64/benchmark/benchmark.find_last.length.js index fad599a8..e10c9ee8 100644 --- a/complex64/benchmark/benchmark.find_last.length.js +++ b/complex64/benchmark/benchmark.find_last.length.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.find_last_index.length.js b/complex64/benchmark/benchmark.find_last_index.length.js index 450dc65f..67031406 100644 --- a/complex64/benchmark/benchmark.find_last_index.length.js +++ b/complex64/benchmark/benchmark.find_last_index.length.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.for_each.length.js b/complex64/benchmark/benchmark.for_each.length.js index 2e42f191..ff569c35 100644 --- a/complex64/benchmark/benchmark.for_each.length.js +++ b/complex64/benchmark/benchmark.for_each.length.js @@ -23,8 +23,8 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.map.js b/complex64/benchmark/benchmark.map.js index 6661130e..bef5e68a 100644 --- a/complex64/benchmark/benchmark.map.js +++ b/complex64/benchmark/benchmark.map.js @@ -22,8 +22,8 @@ var bench = require( '@stdlib/bench' ); var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.some.length.js b/complex64/benchmark/benchmark.some.length.js index 28dd2fc2..cf8b2686 100644 --- a/complex64/benchmark/benchmark.some.length.js +++ b/complex64/benchmark/benchmark.some.length.js @@ -24,8 +24,8 @@ var bench = require( '@stdlib/bench' ); var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.sort.js b/complex64/benchmark/benchmark.sort.js index 4d1f3be1..1c476292 100644 --- a/complex64/benchmark/benchmark.sort.js +++ b/complex64/benchmark/benchmark.sort.js @@ -22,8 +22,8 @@ var bench = require( '@stdlib/bench' ); var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.sort.length.js b/complex64/benchmark/benchmark.sort.length.js index c40c093d..48670b7c 100644 --- a/complex64/benchmark/benchmark.sort.length.js +++ b/complex64/benchmark/benchmark.sort.length.js @@ -22,8 +22,8 @@ var bench = require( '@stdlib/bench' ); var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var pkg = require( './../package.json' ).name; diff --git a/complex64/benchmark/benchmark.to_sorted.js b/complex64/benchmark/benchmark.to_sorted.js index 16e2a817..4ebcfcc4 100644 --- a/complex64/benchmark/benchmark.to_sorted.js +++ b/complex64/benchmark/benchmark.to_sorted.js @@ -22,8 +22,8 @@ var bench = require( '@stdlib/bench' ); var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pkg = require( './../package.json' ).name; var Complex64Array = require( './../lib' ); diff --git a/complex64/benchmark/benchmark.to_sorted.length.js b/complex64/benchmark/benchmark.to_sorted.length.js index fd5146d7..507a7055 100644 --- a/complex64/benchmark/benchmark.to_sorted.length.js +++ b/complex64/benchmark/benchmark.to_sorted.length.js @@ -22,8 +22,8 @@ var bench = require( '@stdlib/bench' ); var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var pkg = require( './../package.json' ).name; diff --git a/complex64/docs/repl.txt b/complex64/docs/repl.txt index 9da1b511..0f8213a9 100644 --- a/complex64/docs/repl.txt +++ b/complex64/docs/repl.txt @@ -179,9 +179,9 @@ 2 > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 @@ -219,9 +219,9 @@ 2 > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -1.0 @@ -327,9 +327,9 @@ > var z = arr.at( 1 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 @@ -361,9 +361,9 @@ > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 @@ -382,21 +382,21 @@ > var it = arr.entries(); > var v = it.next().value [ 0, ] - > var re = {{alias:@stdlib/complex/realf}}( v[ 1 ] ) + > var re = {{alias:@stdlib/complex/float32/real}}( v[ 1 ] ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( v[ 1 ] ) + > var im = {{alias:@stdlib/complex/float32/imag}}( v[ 1 ] ) -1.0 > v = it.next().value [ 1, ] - > re = {{alias:@stdlib/complex/realf}}( v[ 1 ] ) + > re = {{alias:@stdlib/complex/float32/real}}( v[ 1 ] ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( v[ 1 ] ) + > im = {{alias:@stdlib/complex/float32/imag}}( v[ 1 ] ) -2.0 > v = it.next().value [ 2, ] - > re = {{alias:@stdlib/complex/realf}}( v[ 1 ] ) + > re = {{alias:@stdlib/complex/float32/real}}( v[ 1 ] ) 3.0 - > im = {{alias:@stdlib/complex/imagf}}( v[ 1 ] ) + > im = {{alias:@stdlib/complex/float32/imag}}( v[ 1 ] ) -3.0 > var bool = it.next().done true @@ -428,7 +428,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) > 0.0 ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float32/real}}( v ) > 0.0 ); }; > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) > var bool = arr.every( predicate ) @@ -463,21 +463,21 @@ > arr.fill( new {{alias:@stdlib/complex/float32/ctor}}( 1.0, 1.0 ) ); > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) 1.0 > z = arr.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) 1.0 > z = arr.get( 2 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) 1.0 @@ -510,7 +510,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float32/real}}( v ) === {{alias:@stdlib/complex/float32/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var out = arr.filter( predicate ) @@ -519,9 +519,9 @@ 1 > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) 2.0 @@ -553,14 +553,14 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float32/real}}( v ) === {{alias:@stdlib/complex/float32/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var z = arr.find( predicate ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) 1.0 @@ -592,7 +592,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float32/real}}( v ) === {{alias:@stdlib/complex/float32/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var idx = arr.findIndex( predicate ) @@ -627,14 +627,14 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float32/real}}( v ) === {{alias:@stdlib/complex/float32/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var z = arr.findLast( predicate ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) 2.0 @@ -666,7 +666,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float32/real}}( v ) === {{alias:@stdlib/complex/float32/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var idx = arr.findLastIndex( predicate ) @@ -723,9 +723,9 @@ > var z = arr.get( 1 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 @@ -896,15 +896,15 @@ > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -1.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 @@ -947,9 +947,9 @@ > var z = arr.reduce( {{alias:@stdlib/math/base/ops/caddf}} ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 @@ -992,9 +992,9 @@ > var z = arr.reduceRight( {{alias:@stdlib/math/base/ops/caddf}} ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 @@ -1015,21 +1015,21 @@ > arr.reverse(); > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 > z = arr.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 > z = arr.get( 2 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -1.0 @@ -1058,16 +1058,16 @@ > arr.set( new {{alias:@stdlib/complex/float32/ctor}}( 1.0, -1.0 ) ); > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -1.0 > arr.set( new {{alias:@stdlib/complex/float32/ctor}}( 2.0, -2.0 ), 1 ); > z = arr.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 @@ -1099,15 +1099,15 @@ 2 > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 @@ -1137,7 +1137,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/realf}}( v ) === {{alias:@stdlib/complex/imagf}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float32/real}}( v ) === {{alias:@stdlib/complex/float32/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var bool = arr.some( predicate ) @@ -1169,27 +1169,27 @@ Examples -------- - > function compare( a, b ) { return ( {{alias:@stdlib/complex/realf}}( a ) - {{alias:@stdlib/complex/realf}}( b ) ); }; + > function compare( a, b ) { return ( {{alias:@stdlib/complex/float32/real}}( a ) - {{alias:@stdlib/complex/float32/real}}( b ) ); }; > var arr = new {{alias}}( [ 2.0, -2.0, 3.0, -3.0, 1.0, -1.0 ] ) > arr.sort( compare ); > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -1.0 > z = arr.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 > z = arr.get( 2 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 @@ -1222,15 +1222,15 @@ 2 > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 @@ -1274,21 +1274,21 @@ > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) 3.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) 2.0 > z = out.get( 2 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) 1.0 @@ -1317,27 +1317,27 @@ Examples -------- - > function compare( a, b ) { return ( {{alias:@stdlib/complex/realf}}( a ) - {{alias:@stdlib/complex/realf}}( b ) ); }; + > function compare( a, b ) { return ( {{alias:@stdlib/complex/float32/real}}( a ) - {{alias:@stdlib/complex/float32/real}}( b ) ); }; > var arr = new {{alias}}( [ 2.0, -2.0, 3.0, -3.0, 1.0, -1.0 ] ) > var out = arr.toSorted( compare ); > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -1.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -2.0 > z = out.get( 2 ) - > re = {{alias:@stdlib/complex/realf}}( z ) + > re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > im = {{alias:@stdlib/complex/imagf}}( z ) + > im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 @@ -1372,15 +1372,15 @@ > var it = arr.values(); > var v = it.next().value - > var re = {{alias:@stdlib/complex/realf}}( v ) + > var re = {{alias:@stdlib/complex/float32/real}}( v ) 1.0 - > var im = {{alias:@stdlib/complex/imagf}}( v ) + > var im = {{alias:@stdlib/complex/float32/imag}}( v ) -1.0 > v = it.next().value - > re = {{alias:@stdlib/complex/realf}}( v ) + > re = {{alias:@stdlib/complex/float32/real}}( v ) 2.0 - > im = {{alias:@stdlib/complex/imagf}}( v ) + > im = {{alias:@stdlib/complex/float32/imag}}( v ) -2.0 > var bool = it.next().done true @@ -1411,9 +1411,9 @@ > var z = out.get( 1 ) - > var re = {{alias:@stdlib/complex/realf}}( z ) + > var re = {{alias:@stdlib/complex/float32/real}}( z ) 3.0 - > var im = {{alias:@stdlib/complex/imagf}}( z ) + > var im = {{alias:@stdlib/complex/float32/imag}}( z ) -3.0 diff --git a/complex64/docs/types/index.d.ts b/complex64/docs/types/index.d.ts index 7b80cd8c..a9ac2e64 100644 --- a/complex64/docs/types/index.d.ts +++ b/complex64/docs/types/index.d.ts @@ -422,8 +422,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 4 ); * @@ -488,8 +488,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns boolean indicating whether all elements pass a test * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -515,8 +515,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns modified typed array * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 3 ); * @@ -550,8 +550,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns new array containing elements which pass a test implemented by a predicate function * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -588,8 +588,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns array element or undefined * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * function predicate( v ) { @@ -622,8 +622,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -648,8 +648,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns array element or undefined * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * function predicate( v ) { @@ -682,8 +682,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -883,8 +883,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function scale( v, i ) { * return new Complex64( 2.0*realf( v ), 2.0*imagf( v ) ); @@ -918,8 +918,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns accumulated result * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * var caddf = require( '@stdlib/math/base/ops/caddf' ); * * var arr = new Complex64Array( 3 ); @@ -947,8 +947,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns accumulated result * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * var caddf = require( '@stdlib/math/base/ops/caddf' ); * * var arr = new Complex64Array( 3 ); @@ -974,8 +974,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns reversed array * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 3 ); * @@ -1047,8 +1047,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @throws target array lacks sufficient storage to accommodate source values * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 10 ); * @@ -1083,8 +1083,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns output array * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 5 ); * @@ -1152,8 +1152,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns boolean indicating whether at least one element passes a test * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -1177,8 +1177,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns sorted array * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function compare( a, b ) { * var re1; @@ -1251,8 +1251,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns subarray * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 5 ); * @@ -1336,8 +1336,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns reversed array * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 3 ); * @@ -1384,8 +1384,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns sorted array * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function compare( a, b ) { * var re1; @@ -1471,8 +1471,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns iterator * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * var arr = new Complex64Array( 2 ); * * arr.set( [ 1.0, -1.0 ], 0 ); @@ -1514,8 +1514,8 @@ declare class Complex64Array implements Complex64ArrayInterface { * @returns modified typed array * * @example - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * var arr = new Complex64Array( 3 ); @@ -1728,8 +1728,8 @@ interface Complex64ArrayConstructor { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var realf = require( '@stdlib/complex/realf' ); - * var imagf = require( '@stdlib/complex/imagf' ); + * var realf = require( '@stdlib/complex/float32/real' ); + * var imagf = require( '@stdlib/complex/float32/imag' ); * * function clbk( v ) { * return new Complex64( realf(v)*2.0, imagf(v)*2.0 ); diff --git a/complex64/docs/types/test.ts b/complex64/docs/types/test.ts index 9943ff0a..5c07f51d 100644 --- a/complex64/docs/types/test.ts +++ b/complex64/docs/types/test.ts @@ -18,15 +18,22 @@ /* eslint-disable @typescript-eslint/no-unused-expressions */ -import Complex64Array = require( './index' ); import Complex64 = require( '@stdlib/complex/float32/ctor' ); import ArrayBuffer = require( './../../../buffer' ); -import realf = require( '@stdlib/complex/realf' ); -import imagf = require( '@stdlib/complex/imagf' ); +import realf = require( '@stdlib/complex/float32/real' ); +import imagf = require( '@stdlib/complex/float32/imag' ); +import Complex64Array = require( './index' ); -const clbk = ( v: Complex64 ) => { +/** +* Callback function. +* +* @private +* @param v - input value +* @returns output value +*/ +function clbk( v: Complex64 ): Complex64 { return new Complex64( realf( v ) * 2.0, imagf( v ) * 2.0 ); -}; +} // TESTS // diff --git a/complex64/lib/from_array.js b/complex64/lib/from_array.js index b6a48c7d..0c75de61 100644 --- a/complex64/lib/from_array.js +++ b/complex64/lib/from_array.js @@ -21,8 +21,8 @@ // MODULES // var isComplexLike = require( '@stdlib/assert/is-complex-like' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // diff --git a/complex64/lib/from_iterator.js b/complex64/lib/from_iterator.js index 7ed6801e..4addd216 100644 --- a/complex64/lib/from_iterator.js +++ b/complex64/lib/from_iterator.js @@ -22,8 +22,8 @@ var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var isComplexLike = require( '@stdlib/assert/is-complex-like' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var format = require( '@stdlib/string/format' ); diff --git a/complex64/lib/from_iterator_map.js b/complex64/lib/from_iterator_map.js index cf154fb3..7d835f85 100644 --- a/complex64/lib/from_iterator_map.js +++ b/complex64/lib/from_iterator_map.js @@ -22,8 +22,8 @@ var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var isComplexLike = require( '@stdlib/assert/is-complex-like' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var format = require( '@stdlib/string/format' ); diff --git a/complex64/lib/main.js b/complex64/lib/main.js index 56c9d23c..c7212868 100644 --- a/complex64/lib/main.js +++ b/complex64/lib/main.js @@ -43,8 +43,8 @@ var setReadOnlyAccessor = require( '@stdlib/utils/define-nonenumerable-read-only var Float32Array = require( './../../float32' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var format = require( '@stdlib/string/format' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var floor = require( '@stdlib/math/base/special/floor' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); @@ -365,8 +365,8 @@ setReadOnly( Complex64Array, 'name', 'Complex64Array' ); * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function clbk( v ) { * return new Complex64( realf(v)*2.0, imagf(v)*2.0 ); @@ -551,8 +551,8 @@ setReadOnly( Complex64Array, 'of', function of() { * * @example * var arr = new Complex64Array( 10 ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = arr.at( 0 ); * // returns @@ -692,8 +692,8 @@ setReadOnly( Complex64Array.prototype, 'BYTES_PER_ELEMENT', Complex64Array.BYTES * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 4 ); * @@ -853,8 +853,8 @@ setReadOnly( Complex64Array.prototype, 'entries', function entries() { * @returns {boolean} boolean indicating whether all elements pass a test * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -903,8 +903,8 @@ setReadOnly( Complex64Array.prototype, 'every', function every( predicate, thisA * @returns {Complex64Array} modified array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 3 ); * @@ -996,8 +996,8 @@ setReadOnly( Complex64Array.prototype, 'fill', function fill( value, start, end * @returns {Complex64Array} complex number array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -1059,8 +1059,8 @@ setReadOnly( Complex64Array.prototype, 'filter', function filter( predicate, thi * @returns {(Complex64|void)} array element or undefined * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * function predicate( v ) { @@ -1115,8 +1115,8 @@ setReadOnly( Complex64Array.prototype, 'find', function find( predicate, thisArg * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -1164,8 +1164,8 @@ setReadOnly( Complex64Array.prototype, 'findIndex', function findIndex( predicat * @returns {(Complex64|void)} array element or undefined * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * function predicate( v ) { @@ -1220,8 +1220,8 @@ setReadOnly( Complex64Array.prototype, 'findLast', function findLast( predicate, * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -1312,8 +1312,8 @@ setReadOnly( Complex64Array.prototype, 'forEach', function forEach( fcn, thisArg * * @example * var arr = new Complex64Array( 10 ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var z = arr.get( 0 ); * // returns @@ -1742,8 +1742,8 @@ setReadOnlyAccessor( Complex64Array.prototype, 'length', function get() { * * @example * var Complex64 = require( '@stdlib/complex/float32/ctor' ); -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function scale( v, i ) { * return new Complex64( 2.0*realf( v ), 2.0*imagf( v ) ); @@ -1811,8 +1811,8 @@ setReadOnly( Complex64Array.prototype, 'map', function map( fcn, thisArg ) { * @returns {*} accumulated result * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var caddf = require( '@stdlib/math/base/ops/caddf' ); * * var arr = new Complex64Array( 3 ); @@ -1876,8 +1876,8 @@ setReadOnly( Complex64Array.prototype, 'reduce', function reduce( reducer, initi * @returns {*} accumulated result * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var caddf = require( '@stdlib/math/base/ops/caddf' ); * * var arr = new Complex64Array( 3 ); @@ -1937,8 +1937,8 @@ setReadOnly( Complex64Array.prototype, 'reduceRight', function reduceRight( redu * @returns {Complex64Array} reversed array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 3 ); * @@ -2038,8 +2038,8 @@ setReadOnly( Complex64Array.prototype, 'reverse', function reverse() { * @returns {void} * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 10 ); * @@ -2206,8 +2206,8 @@ setReadOnly( Complex64Array.prototype, 'set', function set( value ) { * @returns {Complex64Array} complex number array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 5 ); * @@ -2335,8 +2335,8 @@ setReadOnly( Complex64Array.prototype, 'slice', function slice( start, end ) { * @returns {boolean} boolean indicating whether at least one element passes a test * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function predicate( v ) { * return ( realf( v ) === imagf( v ) ); @@ -2381,8 +2381,8 @@ setReadOnly( Complex64Array.prototype, 'some', function some( predicate, thisArg * @returns {Complex64Array} sorted array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function compare( a, b ) { * var re1; @@ -2485,8 +2485,8 @@ setReadOnly( Complex64Array.prototype, 'sort', function sort( compareFcn ) { * @returns {Complex64Array} subarray * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 5 ); * @@ -2658,8 +2658,8 @@ setReadOnly( Complex64Array.prototype, 'toLocaleString', function toLocaleString * @returns {Complex64Array} reversed array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * var arr = new Complex64Array( 3 ); * @@ -2731,8 +2731,8 @@ setReadOnly( Complex64Array.prototype, 'toReversed', function toReversed() { * @returns {Complex64Array} sorted array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * * function compare( a, b ) { * var re1; @@ -2858,8 +2858,8 @@ setReadOnly( Complex64Array.prototype, 'toString', function toString() { * @returns {Iterator} iterator * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var arr = new Complex64Array( 2 ); * * arr.set( [ 1.0, -1.0 ], 0 ); @@ -2980,8 +2980,8 @@ setReadOnly( Complex64Array.prototype, 'values', function values() { * @returns {Complex64Array} new typed array * * @example -* var realf = require( '@stdlib/complex/realf' ); -* var imagf = require( '@stdlib/complex/imagf' ); +* var realf = require( '@stdlib/complex/float32/real' ); +* var imagf = require( '@stdlib/complex/float32/imag' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * * var arr = new Complex64Array( 3 ); diff --git a/complex64/test/test.at.js b/complex64/test/test.at.js index 0d4fc69f..8e94acab 100644 --- a/complex64/test/test.at.js +++ b/complex64/test/test.at.js @@ -24,8 +24,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.entries.js b/complex64/test/test.entries.js index 42c1167e..15bc88f6 100644 --- a/complex64/test/test.entries.js +++ b/complex64/test/test.entries.js @@ -26,8 +26,8 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var isArray = require( '@stdlib/assert/is-array' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.every.js b/complex64/test/test.every.js index 146306cb..ef954379 100644 --- a/complex64/test/test.every.js +++ b/complex64/test/test.every.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.filter.js b/complex64/test/test.filter.js index 0bcb1e26..11868894 100644 --- a/complex64/test/test.filter.js +++ b/complex64/test/test.filter.js @@ -25,8 +25,8 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var instanceOf = require( '@stdlib/assert/instance-of' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Float32Array = require( './../../float32' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.find.js b/complex64/test/test.find.js index 463b0967..9de0fda5 100644 --- a/complex64/test/test.find.js +++ b/complex64/test/test.find.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.find_index.js b/complex64/test/test.find_index.js index aafc5fad..f87f978e 100644 --- a/complex64/test/test.find_index.js +++ b/complex64/test/test.find_index.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.find_last.js b/complex64/test/test.find_last.js index 4d5a147d..2378969d 100644 --- a/complex64/test/test.find_last.js +++ b/complex64/test/test.find_last.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.find_last_index.js b/complex64/test/test.find_last_index.js index e08115d8..6b4f9240 100644 --- a/complex64/test/test.find_last_index.js +++ b/complex64/test/test.find_last_index.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.from.js b/complex64/test/test.from.js index 26916f5a..1babdf4c 100644 --- a/complex64/test/test.from.js +++ b/complex64/test/test.from.js @@ -27,10 +27,10 @@ var Complex128Array = require( './../../complex128' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.get.js b/complex64/test/test.get.js index 8c064e72..55b01264 100644 --- a/complex64/test/test.get.js +++ b/complex64/test/test.get.js @@ -24,8 +24,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.js b/complex64/test/test.js index 0a9add2e..07555d4c 100644 --- a/complex64/test/test.js +++ b/complex64/test/test.js @@ -28,7 +28,7 @@ var Complex128Array = require( './../../complex128' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isArrayBuffer = require( '@stdlib/assert/is-arraybuffer' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); +var realf = require( '@stdlib/complex/float32/real' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.map.js b/complex64/test/test.map.js index cb66ecf3..62083ce0 100644 --- a/complex64/test/test.map.js +++ b/complex64/test/test.map.js @@ -26,8 +26,8 @@ var isFunction = require( '@stdlib/assert/is-function' ); var identity = require( '@stdlib/utils/identity-function' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var instanceOf = require( '@stdlib/assert/instance-of' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Float32Array = require( './../../float32' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.of.js b/complex64/test/test.of.js index 0afb7b12..11a4288e 100644 --- a/complex64/test/test.of.js +++ b/complex64/test/test.of.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); +var realf = require( '@stdlib/complex/float32/real' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.reduce.js b/complex64/test/test.reduce.js index 151282e8..9d352a06 100644 --- a/complex64/test/test.reduce.js +++ b/complex64/test/test.reduce.js @@ -25,8 +25,8 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var caddf = require( '@stdlib/math/base/ops/caddf' ); var instanceOf = require( '@stdlib/assert/instance-of' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.reduce_right.js b/complex64/test/test.reduce_right.js index 46668e4d..99f5a449 100644 --- a/complex64/test/test.reduce_right.js +++ b/complex64/test/test.reduce_right.js @@ -25,8 +25,8 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var caddf = require( '@stdlib/math/base/ops/caddf' ); var instanceOf = require( '@stdlib/assert/instance-of' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.set.js b/complex64/test/test.set.js index 3f64d035..7613cf92 100644 --- a/complex64/test/test.set.js +++ b/complex64/test/test.set.js @@ -26,8 +26,8 @@ var isFunction = require( '@stdlib/assert/is-function' ); var ArrayBuffer = require( './../../buffer' ); var Float32Array = require( './../../float32' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.some.js b/complex64/test/test.some.js index 7c9cfad0..05a8c3b9 100644 --- a/complex64/test/test.some.js +++ b/complex64/test/test.some.js @@ -23,8 +23,8 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.sort.js b/complex64/test/test.sort.js index 2aa04fda..8e447791 100644 --- a/complex64/test/test.sort.js +++ b/complex64/test/test.sort.js @@ -23,10 +23,10 @@ var tape = require( 'tape' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); -var realf = require( '@stdlib/complex/realf' ); +var realf = require( '@stdlib/complex/float32/real' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var instanceOf = require( '@stdlib/assert/instance-of' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Float32Array = require( './../../float32' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.to_sorted.js b/complex64/test/test.to_sorted.js index f2142aa8..4270b030 100644 --- a/complex64/test/test.to_sorted.js +++ b/complex64/test/test.to_sorted.js @@ -25,8 +25,8 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var instanceOf = require( '@stdlib/assert/instance-of' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Float32Array = require( './../../float32' ); var Complex64Array = require( './../lib' ); diff --git a/complex64/test/test.values.js b/complex64/test/test.values.js index 7603ec37..ea28ee6b 100644 --- a/complex64/test/test.values.js +++ b/complex64/test/test.values.js @@ -26,8 +26,8 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isFunction = require( '@stdlib/assert/is-function' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Complex64Array = require( './../lib' ); diff --git a/convert-same/test/test.js b/convert-same/test/test.js index c8644d42..ec51711e 100644 --- a/convert-same/test/test.js +++ b/convert-same/test/test.js @@ -55,9 +55,9 @@ var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var reinterpretBoolean = require( '@stdlib/strided/base/reinterpret-boolean' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var convertArraySame = require( './../lib' ); diff --git a/convert/test/test.js b/convert/test/test.js index 924086c0..57c6a414 100644 --- a/convert/test/test.js +++ b/convert/test/test.js @@ -54,9 +54,9 @@ var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var reinterpretBoolean = require( '@stdlib/strided/base/reinterpret-boolean' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var convertArray = require( './../lib' ); diff --git a/from-iterator/test/test.js b/from-iterator/test/test.js index ee138e2f..61388dfa 100644 --- a/from-iterator/test/test.js +++ b/from-iterator/test/test.js @@ -27,8 +27,8 @@ var Float64Array = require( './../../float64' ); var Complex64Array = require( './../../complex64' ); var array2iterator = require( './../../to-iterator' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var iterator2array = require( './../lib' ); diff --git a/linspace/README.md b/linspace/README.md index 3fce57b3..c57527eb 100644 --- a/linspace/README.md +++ b/linspace/README.md @@ -102,7 +102,7 @@ When either `start` or `stop` is a complex number, the default output array data ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var opts = { 'dtype': 'generic' diff --git a/linspace/lib/accessors_complex.js b/linspace/lib/accessors_complex.js index 3969ee59..21480b64 100644 --- a/linspace/lib/accessors_complex.js +++ b/linspace/lib/accessors_complex.js @@ -23,9 +23,9 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // diff --git a/linspace/lib/generic_complex.js b/linspace/lib/generic_complex.js index 30bc9bf6..d1e745e7 100644 --- a/linspace/lib/generic_complex.js +++ b/linspace/lib/generic_complex.js @@ -23,9 +23,9 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // diff --git a/linspace/lib/typed_complex.js b/linspace/lib/typed_complex.js index e1754451..63d09e86 100644 --- a/linspace/lib/typed_complex.js +++ b/linspace/lib/typed_complex.js @@ -21,9 +21,9 @@ // MODULES // var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // diff --git a/linspace/test/fixtures/complex_strided.js b/linspace/test/fixtures/complex_strided.js index eca269fb..b86d62f3 100644 --- a/linspace/test/fixtures/complex_strided.js +++ b/linspace/test/fixtures/complex_strided.js @@ -22,9 +22,9 @@ var isComplex64 = require( '@stdlib/assert/is-complex64' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); // MAIN // diff --git a/linspace/test/test.assign.js b/linspace/test/test.assign.js index c68153c2..0b608c5c 100644 --- a/linspace/test/test.assign.js +++ b/linspace/test/test.assign.js @@ -40,9 +40,9 @@ var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var everyBy = require( '@stdlib/utils/every-by' ); var naryFunction = require( '@stdlib/utils/nary-function' ); var zeros = require( './../../base/zeros' ); diff --git a/linspace/test/test.main.js b/linspace/test/test.main.js index d29dcd22..f7550f01 100644 --- a/linspace/test/test.main.js +++ b/linspace/test/test.main.js @@ -37,9 +37,9 @@ var isComplex64Array = require( '@stdlib/assert/is-complex64array' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var everyBy = require( '@stdlib/utils/every-by' ); var naryFunction = require( '@stdlib/utils/nary-function' ); var toStrided = require( './fixtures/complex_strided.js' ); diff --git a/mskput/test/test.js b/mskput/test/test.js index c6135a73..71321de8 100644 --- a/mskput/test/test.js +++ b/mskput/test/test.js @@ -28,8 +28,8 @@ var zeros = require( './../../zeros' ); var toAccessorArray = require( './../../base/to-accessor-array' ); var isAccessorArray = require( '@stdlib/assert/is-accessor-array' ); var Complex64 = require( '@stdlib/complex/float32' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var mskput = require( './../lib' ); diff --git a/place/test/test.js b/place/test/test.js index e773d8ee..920b1f05 100644 --- a/place/test/test.js +++ b/place/test/test.js @@ -28,8 +28,8 @@ var zeros = require( './../../zeros' ); var toAccessorArray = require( './../../base/to-accessor-array' ); var isAccessorArray = require( '@stdlib/assert/is-accessor-array' ); var Complex64 = require( '@stdlib/complex/float32' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var isComplex64 = require( '@stdlib/assert/is-complex64' ); var place = require( './../lib' ); diff --git a/pool/test/test.factory.js b/pool/test/test.factory.js index 3caf93d0..f3d81a60 100644 --- a/pool/test/test.factory.js +++ b/pool/test/test.factory.js @@ -41,9 +41,9 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Boolean = require( '@stdlib/boolean/ctor' ); var real = require( '@stdlib/complex/real' ); -var realf = require( '@stdlib/complex/realf' ); -var imag = require( '@stdlib/complex/imag' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var factory = require( './../lib/factory.js' ); diff --git a/pool/test/test.js b/pool/test/test.js index 865466ea..531073af 100644 --- a/pool/test/test.js +++ b/pool/test/test.js @@ -41,9 +41,9 @@ var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Boolean = require( '@stdlib/boolean/ctor' ); var real = require( '@stdlib/complex/real' ); -var realf = require( '@stdlib/complex/realf' ); -var imag = require( '@stdlib/complex/imag' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var typedarraypool = require( './../lib' ); diff --git a/reviver/test/test.js b/reviver/test/test.js index 8d05ec0f..1fe719bc 100644 --- a/reviver/test/test.js +++ b/reviver/test/test.js @@ -37,9 +37,9 @@ var Complex64Array = require( './../../complex64' ); var Complex128Array = require( './../../complex128' ); var BooleanArray = require( './../../bool' ); var real = require( '@stdlib/complex/real' ); -var realf = require( '@stdlib/complex/realf' ); -var imag = require( '@stdlib/complex/imag' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imag = require( '@stdlib/complex/float64/imag' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var reviveTypedArray = require( './../lib' ); diff --git a/to-fancy/README.md b/to-fancy/README.md index 97de1784..184cbae3 100644 --- a/to-fancy/README.md +++ b/to-fancy/README.md @@ -429,7 +429,7 @@ When assigning a real-valued scalar to a complex number array (e.g., [`Complex12 ```javascript var Complex128Array = require( '@stdlib/array/complex128' ); var real = require( '@stdlib/complex/real' ); -var imag = require( '@stdlib/complex/imag' ); +var imag = require( '@stdlib/complex/float64/imag' ); var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); var y = array2fancy( x ); diff --git a/to-iterator/test/test.js b/to-iterator/test/test.js index 79e958ad..80a28dce 100644 --- a/to-iterator/test/test.js +++ b/to-iterator/test/test.js @@ -25,8 +25,8 @@ var proxyquire = require( 'proxyquire' ); var iteratorSymbol = require( '@stdlib/symbol/iterator' ); var noop = require( '@stdlib/utils/noop' ); var Complex64Array = require( './../../complex64' ); -var realf = require( '@stdlib/complex/realf' ); -var imagf = require( '@stdlib/complex/imagf' ); +var realf = require( '@stdlib/complex/float32/real' ); +var imagf = require( '@stdlib/complex/float32/imag' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var array2iterator = require( './../lib' );