Skip to content
Open
Show file tree
Hide file tree
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 @@ -87,6 +87,9 @@ var bool = isComplexFloatingPointDataType( 'complex128' );
bool = isComplexFloatingPointDataType( 'complex64' );
// returns true

bool = isComplexFloatingPointDataType( 'float16' );
// returns false

bool = isComplexFloatingPointDataType( 'float32' );
// returns false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ bench( pkg, function benchmark( b ) {
'binary',
'complex128',
'complex64',
'float16',
'float32',
'float64',
'generic',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
* bool = isComplexFloatingPointDataType( 'complex128' );
* // returns true
*
* bool = isComplexFloatingPointDataType( 'float16' );
* // returns false
*
* bool = isComplexFloatingPointDataType( 'float32' );
* // returns false
*
Expand Down Expand Up @@ -64,7 +67,7 @@
* bool = isComplexFloatingPointDataType( 'foo' );
* // returns false
*/
declare function isComplexFloatingPointDataType( v: any ): boolean;

Check warning on line 70 in lib/node_modules/@stdlib/array/base/assert/is-complex-floating-point-data-type/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
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ bool = isComplexFloatingPointDataType( 'float32' );
console.log( bool );
// => false

bool = isComplexFloatingPointDataType( 'float16' );
console.log( bool );
// => false

bool = isComplexFloatingPointDataType( 'generic' );
console.log( bool );
// => false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
* bool = isComplexFloatingPointDataType( 'complex128' );
* // returns true
*
* bool = isComplexFloatingPointDataType( 'float16' );
* // returns false
*
* bool = isComplexFloatingPointDataType( 'float32' );
* // returns false
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ var dtypes = require( '@stdlib/array/dtypes' );
* bool = isComplexFloatingPointDataType( 'complex128' );
* // returns true
*
* bool = isComplexFloatingPointDataType( 'float16' );
* // returns false
*
* bool = isComplexFloatingPointDataType( 'float32' );
* // returns false
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ tape( 'the function returns `false` if not provided a supported array complex-va

values = [
// Supported dtypes:
'float16',
'float32',
'float64',
'uint16',
Expand Down