diff --git a/CHANGELOG.md b/CHANGELOG.md index 677b1730..673cbb6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2437,6 +2437,7 @@ A total of 13 people contributed to this release. Thank you to the following con
+- [`32bbcb3`](https://github.com/stdlib-js/stdlib/commit/32bbcb3b3dae1f028fd18166ee7875a93d44d0ee) - **refactor:** update paths _(by Athan Reines)_ - [`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)_ diff --git a/base/accessor-getter/benchmark/benchmark.js b/base/accessor-getter/benchmark/benchmark.js index ad8fa4c0..b09ccfea 100644 --- a/base/accessor-getter/benchmark/benchmark.js +++ b/base/accessor-getter/benchmark/benchmark.js @@ -28,7 +28,7 @@ var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var filledBy = require( './../../../filled-by' ); var Complex128Array = require( './../../../complex128' ); var Complex64Array = require( './../../../complex64' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/base/accessor-getter/lib/main.js b/base/accessor-getter/lib/main.js index 9194972b..c192e6cf 100644 --- a/base/accessor-getter/lib/main.js +++ b/base/accessor-getter/lib/main.js @@ -39,7 +39,7 @@ var GETTERS = { * * @example * var Complex128Array = require( '@stdlib/array/complex128' ); -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( [ 1, 2, 3, 4 ] ); diff --git a/base/accessor-getter/test/test.js b/base/accessor-getter/test/test.js index e34a5458..36d1e27c 100644 --- a/base/accessor-getter/test/test.js +++ b/base/accessor-getter/test/test.js @@ -23,7 +23,7 @@ var tape = require( 'tape' ); var Complex128Array = require( './../../../complex128' ); var Complex64Array = require( './../../../complex64' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/base/accessor-setter/benchmark/benchmark.js b/base/accessor-setter/benchmark/benchmark.js index d22a1653..04a2dca7 100644 --- a/base/accessor-setter/benchmark/benchmark.js +++ b/base/accessor-setter/benchmark/benchmark.js @@ -30,7 +30,7 @@ var Complex128Array = require( './../../../complex128' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/base/accessor-setter/lib/main.js b/base/accessor-setter/lib/main.js index 0e1ec2ee..46371aa4 100644 --- a/base/accessor-setter/lib/main.js +++ b/base/accessor-setter/lib/main.js @@ -40,7 +40,7 @@ var SETTERS = { * @example * var Complex128Array = require( '@stdlib/array/complex128' ); * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( [ 1, 2, 3, 4 ] ); diff --git a/base/accessor-setter/test/test.js b/base/accessor-setter/test/test.js index 5447a129..12d99a06 100644 --- a/base/accessor-setter/test/test.js +++ b/base/accessor-setter/test/test.js @@ -25,7 +25,7 @@ var Complex128Array = require( './../../../complex128' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/base/at/docs/types/index.d.ts b/base/at/docs/types/index.d.ts index 48e6d372..f75f402e 100644 --- a/base/at/docs/types/index.d.ts +++ b/base/at/docs/types/index.d.ts @@ -32,7 +32,7 @@ import { Collection, AccessorArrayLike, Complex128Array, Complex64Array } from ' * * @example * var Complex128Array = require( '@stdlib/array/complex128' ); -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * 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 ] ); diff --git a/base/count-if/test/test.js b/base/count-if/test/test.js index 7acdfe97..00a8d2e1 100644 --- a/base/count-if/test/test.js +++ b/base/count-if/test/test.js @@ -24,7 +24,7 @@ var tape = require( 'tape' ); var Complex128Array = require( './../../../complex128' ); var Int32Array = require( './../../../int32' ); var toAccessorArray = require( './../../../base/to-accessor-array' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 c0d67b3b..a0125122 100644 --- a/base/count-same-value-zero/lib/main.js +++ b/base/count-same-value-zero/lib/main.js @@ -24,7 +24,7 @@ var isComplexTypedArray = require( './../../../base/assert/is-complex-typed-arra 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex' ); var reinterpretBoolean = require( '@stdlib/strided/base/reinterpret-boolean' ); diff --git a/base/count-same-value/lib/main.js b/base/count-same-value/lib/main.js index d52b6e10..9b6afaaa 100644 --- a/base/count-same-value/lib/main.js +++ b/base/count-same-value/lib/main.js @@ -29,7 +29,7 @@ var isBooleanArray = require( './../../../base/assert/is-booleanarray' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); diff --git a/base/filter/docs/types/index.d.ts b/base/filter/docs/types/index.d.ts index f6146966..e55d0ddc 100644 --- a/base/filter/docs/types/index.d.ts +++ b/base/filter/docs/types/index.d.ts @@ -247,7 +247,7 @@ declare function filter( x: Uint8ClampedArray, predica * * @example * var isPositiveNumber = require( '@stdlib/assert/is-positive-number' ).isPrimitive; -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128Array = require( '@stdlib/array/complex128' ); * diff --git a/base/one-to/docs/types/index.d.ts b/base/one-to/docs/types/index.d.ts index 622f1f16..1cfa1f2a 100644 --- a/base/one-to/docs/types/index.d.ts +++ b/base/one-to/docs/types/index.d.ts @@ -210,7 +210,7 @@ interface ZeroTo { * * @example * var Complex128Array = require( './../../../../complex128' ); - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var out = new Complex128Array( 6 ); diff --git a/base/reject/docs/types/index.d.ts b/base/reject/docs/types/index.d.ts index 42c29b41..eb2d6e82 100644 --- a/base/reject/docs/types/index.d.ts +++ b/base/reject/docs/types/index.d.ts @@ -247,7 +247,7 @@ declare function reject( x: Uint8ClampedArray, predica * * @example * var isPositiveNumber = require( '@stdlib/assert/is-positive-number' ).isPrimitive; -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128Array = require( '@stdlib/array/complex128' ); * diff --git a/base/resolve-getter/test/test.js b/base/resolve-getter/test/test.js index cd5aa6a4..456eb514 100644 --- a/base/resolve-getter/test/test.js +++ b/base/resolve-getter/test/test.js @@ -25,7 +25,7 @@ var filled = require( './../../../filled' ); var accessorArray = require( './../../../base/accessor' ); var Complex128Array = require( './../../../complex128' ); var Complex64Array = require( './../../../complex64' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/base/resolve-setter/test/test.js b/base/resolve-setter/test/test.js index 20c24dde..429adf26 100644 --- a/base/resolve-setter/test/test.js +++ b/base/resolve-setter/test/test.js @@ -27,7 +27,7 @@ var Complex128Array = require( './../../../complex128' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/base/zero-to/docs/types/index.d.ts b/base/zero-to/docs/types/index.d.ts index bb1f5489..2c321a84 100644 --- a/base/zero-to/docs/types/index.d.ts +++ b/base/zero-to/docs/types/index.d.ts @@ -210,7 +210,7 @@ interface ZeroTo { * * @example * var Complex128Array = require( './../../../../complex128' ); - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var out = new Complex128Array( 6 ); diff --git a/complex128/README.md b/complex128/README.md index 65c4702a..c9564cb7 100644 --- a/complex128/README.md +++ b/complex128/README.md @@ -282,7 +282,7 @@ The iterator returned by an iterable must return either a complex number or an a ```javascript var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Float64Array = require( '@stdlib/array/float64' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var iter; @@ -345,7 +345,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function map( z ) { @@ -377,7 +377,7 @@ or an array-like object containing real and imaginary components ```javascript var Float64Array = require( '@stdlib/array/float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); // Return a callback which reuses allocated memory... @@ -426,7 +426,7 @@ If `src` is an array-like object containing interleaved real and imaginary compo ```javascript var Float64Array = require( '@stdlib/array/float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function map( v ) { @@ -462,7 +462,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function map( z ) { @@ -521,7 +521,7 @@ len = arr.length; Returns an array element located at integer position (index) `i`, with support for both nonnegative and negative integer positions. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -572,7 +572,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -631,7 +631,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -690,7 +690,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -753,7 +753,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = [ @@ -805,7 +805,7 @@ var bool = it.next().done; Returns a boolean indicating whether all elements pass a test. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { @@ -864,7 +864,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -937,7 +937,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -971,7 +971,7 @@ im = imag( z ); Returns a new array containing the elements of an array which pass a test implemented by a predicate function. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { @@ -1010,7 +1010,7 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { @@ -1046,7 +1046,7 @@ var count = context.count; Returns the first element in an array for which a predicate function returns a truthy value. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { @@ -1079,7 +1079,7 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { @@ -1118,7 +1118,7 @@ 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { @@ -1145,7 +1145,7 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { @@ -1178,7 +1178,7 @@ var count = context.count; Returns the last element in an array for which a predicate function returns a truthy value. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { @@ -1211,7 +1211,7 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { @@ -1250,7 +1250,7 @@ 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { @@ -1277,7 +1277,7 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { @@ -1376,7 +1376,7 @@ var count = context.count; Returns an array element located at position (index) `i`. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1586,7 +1586,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function scale( v ) { @@ -1623,7 +1623,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function scale( v ) { @@ -1656,7 +1656,7 @@ 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var cadd = require( '@stdlib/math/base/ops/cadd' ); @@ -1686,7 +1686,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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); function reducer( acc, v ) { acc += real( v ); @@ -1710,7 +1710,7 @@ 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var cadd = require( '@stdlib/math/base/ops/cadd' ); @@ -1740,7 +1740,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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); function reducer( acc, v ) { acc += real( v ); @@ -1764,7 +1764,7 @@ var z = arr.reduceRight( reducer, 0.0 ); Reverses an array in-place. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -1812,7 +1812,7 @@ Sets one or more array elements. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1845,7 +1845,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1878,7 +1878,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1908,7 +1908,7 @@ or interleaved real and imaginary components ```javascript var Float64Array = require( '@stdlib/array/float64' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 10 ); @@ -1943,7 +1943,7 @@ A few notes: Copies a portion of a typed array to a new typed array. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 ] ); @@ -1977,7 +1977,7 @@ By default, the method returns a typed array beginning with the first array elem ```javascript var imag = require( '@stdlib/complex/float64/imag' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2000,7 +2000,7 @@ var im = imag( 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 ] ); @@ -2037,7 +2037,7 @@ im = imag( z ); Returns a boolean indicating whether at least one element passes a test. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v ) { @@ -2065,7 +2065,7 @@ The `predicate` function is provided three arguments: To set the function execution context, provide a `thisArg`. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function predicate( v, i ) { @@ -2098,7 +2098,7 @@ var count = context.count; Sorts an array in-place. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function compare( a, b ) { @@ -2182,7 +2182,7 @@ 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 ] ); @@ -2216,7 +2216,7 @@ By default, the method creates a typed array view beginning with the first array ```javascript var imag = require( '@stdlib/complex/float64/imag' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); @@ -2239,7 +2239,7 @@ var im = imag( 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 ] ); @@ -2297,7 +2297,7 @@ The method supports the following arguments: Returns a new typed array containing the elements in reversed order. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -2344,7 +2344,7 @@ im = imag( z ); Returns a new typed array containing the elements in sorted order. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); function compare( a, b ) { @@ -2445,7 +2445,7 @@ var str = arr.toString(); Returns an iterator for iterating over each value in a typed array. ```javascript -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 2 ); @@ -2488,7 +2488,7 @@ 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 real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); diff --git a/complex128/benchmark/benchmark.every.length.js b/complex128/benchmark/benchmark.every.length.js index b13c421c..05779453 100644 --- a/complex128/benchmark/benchmark.every.length.js +++ b/complex128/benchmark/benchmark.every.length.js @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 f9c27f8a..9264ac3b 100644 --- a/complex128/benchmark/benchmark.filter.length.js +++ b/complex128/benchmark/benchmark.filter.length.js @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 e02704d7..36b1a5f7 100644 --- a/complex128/benchmark/benchmark.find.length.js +++ b/complex128/benchmark/benchmark.find.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 isComplex128 = require( '@stdlib/assert/is-complex128' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 c1cdaf41..c6e40a33 100644 --- a/complex128/benchmark/benchmark.find_index.length.js +++ b/complex128/benchmark/benchmark.find_index.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 isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 33fd17f3..3e2ab969 100644 --- a/complex128/benchmark/benchmark.find_last.length.js +++ b/complex128/benchmark/benchmark.find_last.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 isComplex128 = require( '@stdlib/assert/is-complex128' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 3628990e..fd82653c 100644 --- a/complex128/benchmark/benchmark.find_last_index.length.js +++ b/complex128/benchmark/benchmark.find_last_index.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 isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 969829e0..b5a63504 100644 --- a/complex128/benchmark/benchmark.for_each.length.js +++ b/complex128/benchmark/benchmark.for_each.length.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); 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 6d895e3f..904fe328 100644 --- a/complex128/benchmark/benchmark.some.length.js +++ b/complex128/benchmark/benchmark.some.length.js @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 c29ec679..a7548193 100644 --- a/complex128/benchmark/benchmark.sort.js +++ b/complex128/benchmark/benchmark.sort.js @@ -22,7 +22,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 dd0e4193..e74d85d3 100644 --- a/complex128/benchmark/benchmark.sort.length.js +++ b/complex128/benchmark/benchmark.sort.length.js @@ -22,7 +22,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); diff --git a/complex128/benchmark/benchmark.to_sorted.js b/complex128/benchmark/benchmark.to_sorted.js index 455c7764..c85170d5 100644 --- a/complex128/benchmark/benchmark.to_sorted.js +++ b/complex128/benchmark/benchmark.to_sorted.js @@ -22,7 +22,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 5df16e54..73df35db 100644 --- a/complex128/benchmark/benchmark.to_sorted.length.js +++ b/complex128/benchmark/benchmark.to_sorted.length.js @@ -22,7 +22,7 @@ var bench = require( '@stdlib/bench' ); var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); diff --git a/complex128/docs/repl.txt b/complex128/docs/repl.txt index d0d62e39..10c195f7 100644 --- a/complex128/docs/repl.txt +++ b/complex128/docs/repl.txt @@ -180,7 +180,7 @@ 2 > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -220,7 +220,7 @@ 2 > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 @@ -328,7 +328,7 @@ > var z = arr.at( 1 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -362,7 +362,7 @@ > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -383,19 +383,19 @@ > var it = arr.entries(); > var v = it.next().value [ 0, ] - > var re = {{alias:@stdlib/complex/real}}( v[ 1 ] ) + > var re = {{alias:@stdlib/complex/float64/real}}( v[ 1 ] ) 1.0 > var im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) -1.0 > v = it.next().value [ 1, ] - > re = {{alias:@stdlib/complex/real}}( v[ 1 ] ) + > re = {{alias:@stdlib/complex/float64/real}}( v[ 1 ] ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) -2.0 > v = it.next().value [ 2, ] - > re = {{alias:@stdlib/complex/real}}( v[ 1 ] ) + > re = {{alias:@stdlib/complex/float64/real}}( v[ 1 ] ) 3.0 > im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) -3.0 @@ -429,7 +429,7 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) > 0.0 ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/real}}( v ) > 0.0 ); }; > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) > var bool = arr.every( predicate ) @@ -464,19 +464,19 @@ > arr.fill( new {{alias:@stdlib/complex/float64/ctor}}( 1.0, 1.0 ) ); > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 > z = arr.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 > z = arr.get( 2 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > 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/float64/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/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 ) @@ -520,7 +520,7 @@ 1 > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 2.0 @@ -554,12 +554,12 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/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 ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > 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/float64/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/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,12 +628,12 @@ Examples -------- - > function predicate( v ) { return ( {{alias:@stdlib/complex/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/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 ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > 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/float64/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/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 ) @@ -724,7 +724,7 @@ > var z = arr.get( 1 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -897,13 +897,13 @@ > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -948,7 +948,7 @@ > var z = arr.reduce( {{alias:@stdlib/math/base/ops/cadd}} ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -993,7 +993,7 @@ > var z = arr.reduceRight( {{alias:@stdlib/math/base/ops/cadd}} ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1016,19 +1016,19 @@ > arr.reverse(); > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 > z = arr.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = arr.get( 2 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 @@ -1059,14 +1059,14 @@ > arr.set( new {{alias:@stdlib/complex/float64/ctor}}( 1.0, -1.0 ) ); > var z = arr.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > 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 ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 @@ -1100,13 +1100,13 @@ 2 > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > 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/float64/imag}}( v ) ); }; + > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/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 ) @@ -1170,25 +1170,25 @@ Examples -------- - > function compare( a, b ) { return ( {{alias:@stdlib/complex/real}}( a ) - {{alias:@stdlib/complex/real}}( b ) ); }; + > function compare( a, b ) { return ( {{alias:@stdlib/complex/float64/real}}( a ) - {{alias:@stdlib/complex/float64/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/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 > z = arr.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = arr.get( 2 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1223,13 +1223,13 @@ 2 > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1275,19 +1275,19 @@ > var z = out.get( 0 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) 3.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) 2.0 > z = out.get( 2 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) 1.0 @@ -1318,25 +1318,25 @@ Examples -------- - > function compare( a, b ) { return ( {{alias:@stdlib/complex/real}}( a ) - {{alias:@stdlib/complex/real}}( b ) ); }; + > function compare( a, b ) { return ( {{alias:@stdlib/complex/float64/real}}( a ) - {{alias:@stdlib/complex/float64/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/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 1.0 > var im = {{alias:@stdlib/complex/float64/imag}}( z ) -1.0 > z = out.get( 1 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -2.0 > z = out.get( 2 ) - > re = {{alias:@stdlib/complex/real}}( z ) + > re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > im = {{alias:@stdlib/complex/float64/imag}}( z ) -3.0 @@ -1373,13 +1373,13 @@ > var it = arr.values(); > var v = it.next().value - > var re = {{alias:@stdlib/complex/real}}( v ) + > var re = {{alias:@stdlib/complex/float64/real}}( v ) 1.0 > var im = {{alias:@stdlib/complex/float64/imag}}( v ) -1.0 > v = it.next().value - > re = {{alias:@stdlib/complex/real}}( v ) + > re = {{alias:@stdlib/complex/float64/real}}( v ) 2.0 > im = {{alias:@stdlib/complex/float64/imag}}( v ) -2.0 @@ -1412,7 +1412,7 @@ > var z = out.get( 1 ) - > var re = {{alias:@stdlib/complex/real}}( z ) + > var re = {{alias:@stdlib/complex/float64/real}}( z ) 3.0 > 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 26e77dc5..b3e0c005 100644 --- a/complex128/docs/types/index.d.ts +++ b/complex128/docs/types/index.d.ts @@ -422,7 +422,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 4 ); @@ -488,7 +488,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns boolean indicating whether all elements pass a test * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -515,7 +515,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns modified typed array * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); @@ -550,7 +550,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns new array containing elements which pass a test implemented by a predicate function * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -588,7 +588,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns array element or undefined * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -620,7 +620,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns index or -1 * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -646,7 +646,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns array element or undefined * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -678,7 +678,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns index or -1 * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -881,7 +881,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function scale( v, i ) { @@ -916,7 +916,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns accumulated result * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * @@ -945,7 +945,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns accumulated result * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * @@ -972,7 +972,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns reversed array * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); @@ -1045,7 +1045,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @throws target array lacks sufficient storage to accommodate source values * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 10 ); @@ -1081,7 +1081,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns output array * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); @@ -1150,7 +1150,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns boolean indicating whether at least one element passes a test * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -1175,7 +1175,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns sorted array * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { @@ -1249,7 +1249,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns subarray * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); @@ -1334,7 +1334,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns reversed array * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); @@ -1382,7 +1382,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns sorted array * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { @@ -1469,7 +1469,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns iterator * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var arr = new Complex128Array( 2 ); * @@ -1512,7 +1512,7 @@ declare class Complex128Array implements Complex128ArrayInterface { * @returns modified typed array * * @example - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * @@ -1726,7 +1726,7 @@ interface Complex128ArrayConstructor { * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); - * var real = require( '@stdlib/complex/real' ); + * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function clbk( v ) { diff --git a/complex128/docs/types/test.ts b/complex128/docs/types/test.ts index 32989614..4ecb3a1c 100644 --- a/complex128/docs/types/test.ts +++ b/complex128/docs/types/test.ts @@ -20,7 +20,7 @@ import Complex128 = require( '@stdlib/complex/float64/ctor' ); import ArrayBuffer = require( './../../../buffer' ); -import real = require( '@stdlib/complex/real' ); +import real = require( '@stdlib/complex/float64/real' ); import imag = require( '@stdlib/complex/float64/imag' ); import Complex128Array = require( './index' ); diff --git a/complex128/lib/from_array.js b/complex128/lib/from_array.js index 56d00979..6e0f464c 100644 --- a/complex128/lib/from_array.js +++ b/complex128/lib/from_array.js @@ -21,7 +21,7 @@ // MODULES // var isComplexLike = require( '@stdlib/assert/is-complex-like' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); diff --git a/complex128/lib/from_iterator.js b/complex128/lib/from_iterator.js index 27dd47df..637ee6c0 100644 --- a/complex128/lib/from_iterator.js +++ b/complex128/lib/from_iterator.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); diff --git a/complex128/lib/from_iterator_map.js b/complex128/lib/from_iterator_map.js index a7349760..f9482273 100644 --- a/complex128/lib/from_iterator_map.js +++ b/complex128/lib/from_iterator_map.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); diff --git a/complex128/lib/main.js b/complex128/lib/main.js index dfa21cf2..2d1743ff 100644 --- a/complex128/lib/main.js +++ b/complex128/lib/main.js @@ -42,7 +42,7 @@ var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-propert var setReadOnlyAccessor = require( '@stdlib/utils/define-nonenumerable-read-only-accessor' ); var Float64Array = require( './../../float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var floor = require( '@stdlib/math/base/special/floor' ); var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' ); @@ -365,7 +365,7 @@ setReadOnly( Complex128Array, 'name', 'Complex128Array' ); * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function clbk( v ) { @@ -550,7 +550,7 @@ setReadOnly( Complex128Array, 'of', function of() { * @returns {(Complex128|void)} array element * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 10 ); @@ -693,7 +693,7 @@ setReadOnly( Complex128Array.prototype, 'BYTES_PER_ELEMENT', Complex128Array.BYT * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 4 ); @@ -859,7 +859,7 @@ setReadOnly( Complex128Array.prototype, 'entries', function entries() { * @returns {boolean} boolean indicating whether all elements pass a test * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -909,7 +909,7 @@ setReadOnly( Complex128Array.prototype, 'every', function every( predicate, this * @returns {Complex128Array} modified array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); @@ -1002,7 +1002,7 @@ setReadOnly( Complex128Array.prototype, 'fill', function fill( value, start, end * @returns {Complex128Array} complex number array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -1065,7 +1065,7 @@ setReadOnly( Complex128Array.prototype, 'filter', function filter( predicate, th * @returns {(Complex128|void)} array element or undefined * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -1119,7 +1119,7 @@ setReadOnly( Complex128Array.prototype, 'find', function find( predicate, thisAr * @returns {integer} index or -1 * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -1168,7 +1168,7 @@ setReadOnly( Complex128Array.prototype, 'findIndex', function findIndex( predica * @returns {(Complex128|void)} array element or undefined * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -1222,7 +1222,7 @@ setReadOnly( Complex128Array.prototype, 'findLast', function findLast( predicate * @returns {integer} index or -1 * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -1314,7 +1314,7 @@ setReadOnly( Complex128Array.prototype, 'forEach', function forEach( fcn, thisAr * * @example * var arr = new Complex128Array( 10 ); -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var z = arr.get( 0 ); @@ -1744,7 +1744,7 @@ setReadOnly( Complex128Array.prototype, 'lastIndexOf', function lastIndexOf( sea * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function scale( v, i ) { @@ -1813,7 +1813,7 @@ setReadOnly( Complex128Array.prototype, 'map', function map( fcn, thisArg ) { * @returns {*} accumulated result * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * @@ -1878,7 +1878,7 @@ setReadOnly( Complex128Array.prototype, 'reduce', function reduce( reducer, init * @returns {*} accumulated result * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var cadd = require( '@stdlib/math/base/ops/cadd' ); * @@ -1939,7 +1939,7 @@ setReadOnly( Complex128Array.prototype, 'reduceRight', function reduceRight( red * @returns {Complex128Array} reversed array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); @@ -2040,7 +2040,7 @@ setReadOnly( Complex128Array.prototype, 'reverse', function reverse() { * @returns {void} * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 10 ); @@ -2208,7 +2208,7 @@ setReadOnly( Complex128Array.prototype, 'set', function set( value ) { * @returns {Complex128Array} complex number array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); @@ -2337,7 +2337,7 @@ setReadOnly( Complex128Array.prototype, 'slice', function slice( start, end ) { * @returns {boolean} boolean indicating whether at least one element passes a test * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function predicate( v ) { @@ -2383,7 +2383,7 @@ setReadOnly( Complex128Array.prototype, 'some', function some( predicate, thisAr * @returns {Complex128Array} sorted array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { @@ -2487,7 +2487,7 @@ setReadOnly( Complex128Array.prototype, 'sort', function sort( compareFcn ) { * @returns {Complex64Array} subarray * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 5 ); @@ -2660,7 +2660,7 @@ setReadOnly( Complex128Array.prototype, 'toLocaleString', function toLocaleStrin * @returns {Complex128Array} reversed array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 3 ); @@ -2733,7 +2733,7 @@ setReadOnly( Complex128Array.prototype, 'toReversed', function toReversed() { * @returns {Complex128Array} sorted array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * function compare( a, b ) { @@ -2860,7 +2860,7 @@ setReadOnly( Complex128Array.prototype, 'toString', function toString() { * @returns {Iterator} iterator * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var arr = new Complex128Array( 2 ); * @@ -2982,7 +2982,7 @@ setReadOnly( Complex128Array.prototype, 'values', function values() { * @returns {Complex128Array} new typed array * * @example -* var real = require( '@stdlib/complex/real' ); +* var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * var Complex128 = require( '@stdlib/complex/float64/ctor' ); * diff --git a/complex128/test/test.at.js b/complex128/test/test.at.js index e2647136..b63499e0 100644 --- a/complex128/test/test.at.js +++ b/complex128/test/test.at.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 Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 df8550d6..7bcbd416 100644 --- a/complex128/test/test.entries.js +++ b/complex128/test/test.entries.js @@ -26,7 +26,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 bfe7ef4d..6249f3ed 100644 --- a/complex128/test/test.every.js +++ b/complex128/test/test.every.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); 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 cc9e51ac..db4834e9 100644 --- a/complex128/test/test.filter.js +++ b/complex128/test/test.filter.js @@ -25,7 +25,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 faee2476..44330be1 100644 --- a/complex128/test/test.find.js +++ b/complex128/test/test.find.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); 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 b54536ed..9515faec 100644 --- a/complex128/test/test.find_index.js +++ b/complex128/test/test.find_index.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); 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 a2765b52..7b052efc 100644 --- a/complex128/test/test.find_last.js +++ b/complex128/test/test.find_last.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); 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 297cab09..1e66b2e8 100644 --- a/complex128/test/test.find_last_index.js +++ b/complex128/test/test.find_last_index.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); 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 76eb93ad..0bf1cbcc 100644 --- a/complex128/test/test.from.js +++ b/complex128/test/test.from.js @@ -29,7 +29,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 c1713854..b54dc083 100644 --- a/complex128/test/test.get.js +++ b/complex128/test/test.get.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 Complex128 = require( '@stdlib/complex/float32/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.js b/complex128/test/test.js index 544e29ab..56a6c17a 100644 --- a/complex128/test/test.js +++ b/complex128/test/test.js @@ -28,7 +28,7 @@ var Complex64Array = require( './../../complex64' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var isArrayBuffer = require( '@stdlib/assert/is-arraybuffer' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.map.js b/complex128/test/test.map.js index 70703818..76a1cf2d 100644 --- a/complex128/test/test.map.js +++ b/complex128/test/test.map.js @@ -26,7 +26,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Float64Array = require( './../../float64' ); diff --git a/complex128/test/test.of.js b/complex128/test/test.of.js index 7ff93649..2e07f499 100644 --- a/complex128/test/test.of.js +++ b/complex128/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 Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var Complex128Array = require( './../lib' ); diff --git a/complex128/test/test.reduce.js b/complex128/test/test.reduce.js index 80225e71..e6ff7205 100644 --- a/complex128/test/test.reduce.js +++ b/complex128/test/test.reduce.js @@ -25,7 +25,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 f5d27508..b36cc83f 100644 --- a/complex128/test/test.reduce_right.js +++ b/complex128/test/test.reduce_right.js @@ -25,7 +25,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 97603979..afd52efb 100644 --- a/complex128/test/test.set.js +++ b/complex128/test/test.set.js @@ -26,7 +26,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var ArrayBuffer = require( './../../buffer' ); var Float64Array = require( './../../float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); 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 410b504e..a0e82023 100644 --- a/complex128/test/test.some.js +++ b/complex128/test/test.some.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); 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 6e6f7a27..5acdbbe6 100644 --- a/complex128/test/test.sort.js +++ b/complex128/test/test.sort.js @@ -23,7 +23,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 real = require( '@stdlib/complex/float64/real' ); var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' ); var instanceOf = require( '@stdlib/assert/instance-of' ); var imag = require( '@stdlib/complex/float64/imag' ); diff --git a/complex128/test/test.to_sorted.js b/complex128/test/test.to_sorted.js index d443b693..febf42db 100644 --- a/complex128/test/test.to_sorted.js +++ b/complex128/test/test.to_sorted.js @@ -25,7 +25,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); 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 real = require( '@stdlib/complex/float64/real' ); 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 ed459b4d..5a74e272 100644 --- a/complex128/test/test.values.js +++ b/complex128/test/test.values.js @@ -26,7 +26,7 @@ var hasOwnProp = require( '@stdlib/assert/has-own-property' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Complex128Array = require( './../lib' ); diff --git a/complex64/test/test.from.js b/complex64/test/test.from.js index 1babdf4c..363aa921 100644 --- a/complex64/test/test.from.js +++ b/complex64/test/test.from.js @@ -29,7 +29,7 @@ var isFunction = require( '@stdlib/assert/is-function' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var Complex64Array = require( './../lib' ); diff --git a/convert-same/test/test.js b/convert-same/test/test.js index ec51711e..62585c1f 100644 --- a/convert-same/test/test.js +++ b/convert-same/test/test.js @@ -54,7 +54,7 @@ var isComplex128 = require( '@stdlib/assert/is-complex128' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/convert/test/test.js b/convert/test/test.js index 57c6a414..25f5f7c1 100644 --- a/convert/test/test.js +++ b/convert/test/test.js @@ -53,7 +53,7 @@ var isComplex128 = require( '@stdlib/assert/is-complex128' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/linspace/README.md b/linspace/README.md index c57527eb..f163f661 100644 --- a/linspace/README.md +++ b/linspace/README.md @@ -101,7 +101,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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var opts = { diff --git a/linspace/lib/accessors_complex.js b/linspace/lib/accessors_complex.js index 21480b64..e8e910c7 100644 --- a/linspace/lib/accessors_complex.js +++ b/linspace/lib/accessors_complex.js @@ -22,7 +22,7 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/linspace/lib/generic_complex.js b/linspace/lib/generic_complex.js index d1e745e7..d0c9e052 100644 --- a/linspace/lib/generic_complex.js +++ b/linspace/lib/generic_complex.js @@ -22,7 +22,7 @@ var Complex64 = require( '@stdlib/complex/float32/ctor' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/linspace/lib/typed_complex.js b/linspace/lib/typed_complex.js index 63d09e86..3dfaf84c 100644 --- a/linspace/lib/typed_complex.js +++ b/linspace/lib/typed_complex.js @@ -20,7 +20,7 @@ // MODULES // -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/linspace/test/fixtures/complex_strided.js b/linspace/test/fixtures/complex_strided.js index b86d62f3..3cd07ebb 100644 --- a/linspace/test/fixtures/complex_strided.js +++ b/linspace/test/fixtures/complex_strided.js @@ -21,7 +21,7 @@ // MODULES // var isComplex64 = require( '@stdlib/assert/is-complex64' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/linspace/test/test.assign.js b/linspace/test/test.assign.js index 0b608c5c..42be670b 100644 --- a/linspace/test/test.assign.js +++ b/linspace/test/test.assign.js @@ -39,7 +39,7 @@ var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/linspace/test/test.main.js b/linspace/test/test.main.js index f7550f01..b7c4f16b 100644 --- a/linspace/test/test.main.js +++ b/linspace/test/test.main.js @@ -36,7 +36,7 @@ var isComplex128Array = require( '@stdlib/assert/is-complex128array' ); 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 real = require( '@stdlib/complex/float64/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/pool/test/test.factory.js b/pool/test/test.factory.js index f3d81a60..11b6f103 100644 --- a/pool/test/test.factory.js +++ b/pool/test/test.factory.js @@ -40,7 +40,7 @@ var randu = require( '@stdlib/random/base/randu' ); 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 real = require( '@stdlib/complex/float64/real' ); var realf = require( '@stdlib/complex/float32/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/pool/test/test.js b/pool/test/test.js index 531073af..8a07bc42 100644 --- a/pool/test/test.js +++ b/pool/test/test.js @@ -40,7 +40,7 @@ var randu = require( '@stdlib/random/base/randu' ); 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 real = require( '@stdlib/complex/float64/real' ); var realf = require( '@stdlib/complex/float32/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/reviver/test/test.js b/reviver/test/test.js index 1fe719bc..6efa021e 100644 --- a/reviver/test/test.js +++ b/reviver/test/test.js @@ -36,7 +36,7 @@ var Uint8ClampedArray = require( './../../uint8c' ); var Complex64Array = require( './../../complex64' ); var Complex128Array = require( './../../complex128' ); var BooleanArray = require( './../../bool' ); -var real = require( '@stdlib/complex/real' ); +var real = require( '@stdlib/complex/float64/real' ); var realf = require( '@stdlib/complex/float32/real' ); var imag = require( '@stdlib/complex/float64/imag' ); var imagf = require( '@stdlib/complex/float32/imag' ); diff --git a/to-fancy/README.md b/to-fancy/README.md index 184cbae3..b1cf2c72 100644 --- a/to-fancy/README.md +++ b/to-fancy/README.md @@ -428,7 +428,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 real = require( '@stdlib/complex/float64/real' ); 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 ] );