Skip to content

Complex numbers in occa kernels #256

Description

@E-Stroem

Hello,
Is there a way to use C complex numbers and math inside an OCCA kernel?

E.g. the following C code in OCCA kernel:
double complex z1 = 1.0 + 2.0 * I
double complex z2 = 1.0 + 2.0 * I
double complex z3 = z1*z2;

and equivalent creal and cimag functions

Best regards,
E-Stroem

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureUse this label to request a new feature!

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions