| Re: complex number in OpenMX code ( No.1 )|
- Date: 2007/12/19 04:51
- Name: T.Ozaki
Though most of compilers provide the standard library treating the complex
number, some of comilers (for example PGI compiler) did not when I was coding.
So, for portability of the code, I chose the old style.
If you know that the situation has been improved largely, please let me know.
Of course I prefer the C99 style to the old fashion.
| Re: complex number in OpenMX code ( No.2 )|
- Date: 2007/12/24 02:17
- Name: Vasilii Artyukhov
- Been a while since my last experience with C... Couldn't it be possible to use something like
<your hand-made complex type>
<the standard C99 types>
and use "cpp -DNO_COMPLEX" when the compiler doesn't support the complex type?