Add complex type definitions for MSVC
This commit is contained in:
parent
d9f1478068
commit
330101e0b3
|
@ -37,7 +37,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LAPACK_COMPLEX_CUSTOM
|
#ifndef LAPACK_COMPLEX_CUSTOM
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#define _CRT_USE_C_COMPLEX_H
|
||||||
|
#include <complex.h>
|
||||||
|
#define LAPACK_COMPLEX_CUSTOM
|
||||||
|
#define lapack_complex_float _Fcomplex
|
||||||
|
#define lapack_complex_double _Dcomplex
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else
|
||||||
/* Complex type (single precision) */
|
/* Complex type (single precision) */
|
||||||
#ifndef lapack_complex_float
|
#ifndef lapack_complex_float
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
@ -74,6 +82,7 @@
|
||||||
#define lapack_complex_double_imag(z) (cimag(z))
|
#define lapack_complex_double_imag(z) (cimag(z))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif /* LAPACK_COMPLEX_CUSTOM */
|
#endif /* LAPACK_COMPLEX_CUSTOM */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue