Skip to content
fn

is_complex

→bool
bool is_complex(Dtype dt)

Predicate: does the dtype hold a complex pair?

Both complex types answer true and neither is floating point under is_floating_point, which is deliberate: their lanes are floats but they take a separate dispatch, and a real-only kernel handed a complex buffer would read two elements as one.

Parameters

dtDtype
The dtype to test.

Returns

bool

true for C64 and C128.