Checks if the array is a complex type. More...

bool iscomplex () const
 Checks if the array is a complex type. More...
 

Detailed Description

Checks if the array is a complex type.

Returns true if the type of the array is complex (c32, c64)

array a = constant(1,3,3,f32);
if( a.iscomplex() )
; //statement will not be reached
array a = mul(a, cfloat(1,3));
if( a.iscomplex() )
; //statement will be reached

Function Documentation

bool iscomplex ( ) const

Checks if the array is a complex type.

Returns true if the type of the array is complex (c32, c64)

array a = constant(1,3,3,f32);
if( a.iscomplex() )
; //statement will not be reached
array a = mul(a, cfloat(1,3));
if( a.iscomplex() )
; //statement will be reached
Returns
True if the array is a complex type (c32 c64). False otherwise