-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22161 from mattip/simplify-npy_math2
MAINT: simplify complex math function handling in npymath
- Loading branch information
Showing
4 changed files
with
73 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include <complex.h> | ||
|
||
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) | ||
#define cfloat _Fcomplex | ||
#define cdouble _Dcomplex | ||
#define cldouble _Lcomplex | ||
#else | ||
#define cfloat complex float | ||
#define cdouble complex double | ||
#define cldouble complex long double | ||
#endif | ||
|
||
cfloat csinf(cfloat); | ||
cfloat ccosf(cfloat); | ||
cfloat ctanf(cfloat); | ||
cfloat csinhf(cfloat); | ||
cfloat ccoshf(cfloat); | ||
cfloat ctanhf(cfloat); | ||
float crealf(cfloat); | ||
float cimagf(cfloat); | ||
cfloat conjf(cfloat); | ||
|
||
cdouble csin(cdouble); | ||
cdouble ccos(cdouble); | ||
cdouble ctan(cdouble); | ||
cdouble csinh(cdouble); | ||
cdouble ccosh(cdouble); | ||
cdouble ctanh(cdouble); | ||
double creal(cdouble); | ||
double cimag(cdouble); | ||
cdouble conj(cdouble); | ||
|
||
cldouble csinl(cldouble); | ||
cldouble ccosl(cldouble); | ||
cldouble ctanl(cldouble); | ||
cldouble csinhl(cldouble); | ||
cldouble ccoshl(cldouble); | ||
cldouble ctanhl(cldouble); | ||
long double creall(cldouble); | ||
long double cimagl(cldouble); | ||
cldouble conjl(cldouble); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.