isComplexFloatingPointDataType
Test if an input value is a supported array complex-valued floating-point data type.
Usage
var isComplexFloatingPointDataType = require( '@stdlib/array/base/assert/is-complex-floating-point-data-type' );
isComplexFloatingPointDataType( value )
Tests if an input value
is a supported array complex-valued floating-point data type.
var bool = isComplexFloatingPointDataType( 'complex128' );
// returns true
bool = isComplexFloatingPointDataType( 'uint32' );
// returns false
Examples
var isComplexFloatingPointDataType = require( '@stdlib/array/base/assert/is-complex-floating-point-data-type' );
var bool = isComplexFloatingPointDataType( 'complex128' );
// returns true
bool = isComplexFloatingPointDataType( 'complex64' );
// returns true
bool = isComplexFloatingPointDataType( 'float32' );
// returns false
bool = isComplexFloatingPointDataType( 'float64' );
// returns false
bool = isComplexFloatingPointDataType( 'generic' );
// returns false
bool = isComplexFloatingPointDataType( 'int16' );
// returns false
bool = isComplexFloatingPointDataType( 'int32' );
// returns false
bool = isComplexFloatingPointDataType( 'int8' );
// returns false
bool = isComplexFloatingPointDataType( 'uint16' );
// returns false
bool = isComplexFloatingPointDataType( 'uint32' );
// returns false
bool = isComplexFloatingPointDataType( 'uint8' );
// returns false
bool = isComplexFloatingPointDataType( 'uint8c' );
// returns false
bool = isComplexFloatingPointDataType( '' );
// returns false
bool = isComplexFloatingPointDataType( 'foo' );
// returns false