Skip to content

Commit

Permalink
Add complex type definitions for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Dec 11, 2023
1 parent d9f1478 commit 330101e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lapack-netlib/LAPACKE/include/lapack.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@
*/

#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) */
#ifndef lapack_complex_float
#ifndef __cplusplus
Expand Down Expand Up @@ -74,6 +82,7 @@
#define lapack_complex_double_imag(z) (cimag(z))
#endif

#endif
#endif /* LAPACK_COMPLEX_CUSTOM */


Expand Down

0 comments on commit 330101e

Please sign in to comment.