Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex Number Support #16

Open
microbuilder opened this issue Jun 13, 2021 · 0 comments
Open

Complex Number Support #16

microbuilder opened this issue Jun 13, 2021 · 0 comments
Milestone

Comments

@microbuilder
Copy link
Member

microbuilder commented Jun 13, 2021

Add support for complex numbers, using some variation of:

typedef struct zsl_complex {
    zsl_real_t real;
    zsl_real_t imag;
} zsl_complex_t;

ToDo: Analyse if it's appropriate to use complex.h (c99) versus something distinct to zscilib? For single precision we can map f functions like crealf, for double-precision we can map double functions like creal.

@microbuilder microbuilder added this to the v0.2.0 milestone Jun 13, 2021
@microbuilder microbuilder changed the title Imaginary Numbers Complex Number Support Jun 13, 2021
@microbuilder microbuilder modified the milestones: v0.2.0, v0.3.0 Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant