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
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
* @example
* var getShape = require( '@stdlib/ndarray/shape' );
* var getDType = require( '@stdlib/ndarray/dtype' );
* var getData = require( '@stdlib/ndarray/data-buffer' );
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
*
* var v = new Complex128( 1.0, 2.0 );
Expand All @@ -106,8 +107,8 @@
* var dt = String( getDType( x ) );
* // returns 'complex128'
*
* var v = x.get( 0, 1 );
* // returns <Complex128>[ 1.0, 2.0 ]
* var buf = getData( x );
* // returns <Complex128Array>[ 1.0, 2.0 ]
*/
declare function broadcastScalar( value: number | ComplexLike, dtype: 'complex128', shape: Shape, order: Order ): complex128ndarray;

Expand All @@ -127,9 +128,8 @@
* @example
* var getShape = require( '@stdlib/ndarray/shape' );
* var getDType = require( '@stdlib/ndarray/dtype' );
Comment thread
kgryte marked this conversation as resolved.
* var getData = require( '@stdlib/ndarray/data-buffer' );
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* var v = new Complex64( 1.0, 2.0 );
*
Expand All @@ -142,14 +142,8 @@
* var dt = String( getDType( x ) );
* // returns 'complex64'
*
* var v = x.get( 0, 1 );
* // returns <Complex64>
*
* var re = realf( v );
* // returns 1.0
*
* var im = imagf( v );
* // returns 2.0
* var buf = getData( x );
* // returns <Complex64Array>[ 1.0, 2.0 ]
*/
declare function broadcastScalar( value: number | ComplexLike, dtype: 'complex64', shape: Shape, order: Order ): complex64ndarray;

Expand Down Expand Up @@ -367,7 +361,7 @@
* var v = x.get( 0, 1 );
* // returns 1.0
*/
declare function broadcastScalar( value: any, dtype: DataType, shape: Shape, order: Order ): ndarray;

Check warning on line 364 in lib/node_modules/@stdlib/ndarray/base/broadcast-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
Loading