Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions lib/node_modules/@stdlib/ndarray/from-scalar/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
*
* var v = new Complex128( 1.0, 2.0 );
*
Expand All @@ -245,14 +243,8 @@
* var dt = x.dtype;
* // returns 'complex128'
*
* var v = x.get();
* // returns <Complex128>
*
* var re = real( v );
* // returns 1.0
*
* var im = imag( v );
* // returns 2.0
* var buf = x.data;
* // buf => <Complex128Array>[ 1.0, 2.0 ]
*/
declare function scalar2ndarray( value: number | ComplexLike, options: Complex128Options ): complex128ndarray;

Expand All @@ -268,9 +260,7 @@
* @returns zero-dimensional ndarray
*
* @example
* var Complex64 = require( '@stdlib/complex/float64/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
*
* var v = new Complex64( 1.0, 2.0 );
*
Expand All @@ -285,14 +275,8 @@
* var dt = x.dtype;
* // returns 'complex64'
*
* var v = x.get();
* // returns <Complex64>
*
* var re = realf( v );
* // returns 1.0
*
* var im = imagf( v );
* // returns 2.0
* var buf = x.data;
* // buf => <Complex64Array>[ 1.0, 2.0 ]
*/
declare function scalar2ndarray( value: number | ComplexLike, options: Complex64Options ): complex64ndarray;

Expand Down Expand Up @@ -520,7 +504,7 @@
* var v = x.get();
* // returns 1.0
*/
declare function scalar2ndarray<T = any>( value: T, options?: Options ): genericndarray<T>;

Check warning on line 507 in lib/node_modules/@stdlib/ndarray/from-scalar/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type


// EXPORTS //
Expand Down