|
21 | 21 | /// <reference types="@stdlib/types"/>
|
22 | 22 |
|
23 | 23 | import { Iterator as Iter, IterableIterator } from '@stdlib/types/iter';
|
24 |
| -import { ArrayLike, TypedArray } from '@stdlib/types/array'; |
25 |
| -import { ComplexLike } from '@stdlib/types/object'; |
| 24 | +import { ArrayLike, TypedArray, Complex64Array as Complex64ArrayInterface } from '@stdlib/types/array'; |
| 25 | +import { ComplexLike, Complex64 } from '@stdlib/types/object'; |
26 | 26 | import ArrayBuffer = require( '@stdlib/array/buffer' );
|
27 |
| -import Complex64 = require( '@stdlib/complex/float32' ); |
28 | 27 |
|
29 | 28 | // Define a union type representing both iterable and non-iterable iterators:
|
30 | 29 | type Iterator = Iter | IterableIterator;
|
31 | 30 |
|
32 | 31 | /**
|
33 | 32 | * Class for creating a 64-bit complex number array.
|
34 | 33 | */
|
35 |
| -declare class Complex64Array { |
| 34 | +declare class Complex64Array implements Complex64ArrayInterface { |
36 | 35 | /**
|
37 | 36 | * 64-bit complex number array constructor.
|
38 | 37 | *
|
@@ -234,27 +233,6 @@ declare class Complex64Array {
|
234 | 233 | */
|
235 | 234 | get( i: number ): Complex64 | void;
|
236 | 235 |
|
237 |
| - /** |
238 |
| - * Returns an array element. |
239 |
| - * |
240 |
| - * @param out - output array |
241 |
| - * @param i - element index |
242 |
| - * @throws index argument must be a nonnegative integer |
243 |
| - * @returns array element |
244 |
| - * |
245 |
| - * @example |
246 |
| - * var arr = new Complex64Array( 10 ); |
247 |
| - * |
248 |
| - * var z = arr.get( 0 ); |
249 |
| - * // returns <Complex64> |
250 |
| - * |
251 |
| - * arr.set( [ 1.0, -1.0 ], 0 ); |
252 |
| - * |
253 |
| - * z = arr.get( [ 0.0, 0.0 ], 0 ); |
254 |
| - * // returns [ 1.0, -1.0 ] |
255 |
| - */ |
256 |
| - get( out: ArrayLike<number>, i: number ): ArrayLike<number> | void; |
257 |
| - |
258 | 236 | /**
|
259 | 237 | * Sets an array element.
|
260 | 238 | *
|
|
0 commit comments