From: Christian S. <sti...@tu...> - 2006-08-20 20:09:04
|
Am Sonntag, 20. August 2006 20:31 schrieb Aosheng Rong: > From headfile lacomplex, I noticed that you indeed define > complex<double> for gcc only, but not check the definition for msvc. > > I would try to make the modification, after I carefully check > lacomplex, complex on MSVC and complex on GNU C++ . If you have any > good suggestions, just let me know. I need to figure out the > architecture of lapackpp. First, look into the file include/lacomplex.h and read all the comments from top to bottom. As you can see, Fortran needs the COMPLEX type, but that one is too difficult to use from C++. C++ instead uses the class from the compiler's #include <complex> header file for the std::complex class. The only missing part is a class that has automatic conversions from COMPLEX and std::complex and vice versa. This is achieved for gcc by copying the normal compiler's <complex> header file content into the include/lacomplex header file. Look into the file; you will see it's copied from gcc's system library. You need to do the same for MSVC's <complex> header file. Look into include/lacomplex file, you will see it says "(Almost) All changes by Christian are marked with "CS:"". So search for the string "CS:" and you will see which parts have been added by myself. Everything else has been taken unchanged from the <complex> system header, and you need to do just the same for MSVC. Christian PS: It is allowed to redistribute the copied gcc code with lapackpp because it is LGPL licenced. On the contrary it is probably not allowed to redistributed copied code from MSVC because that one is not freely licensed at all. > > Regards, > ------------- > Rong > > On 8/20/06, Christian Stimming <sti...@tu...> wrote: > > Am Samstag, 19. August 2006 13:35 schrieb Aosheng Rong: > > > Can you add complex-value matrix support on Windows? The > > > complex-value matrices are of essential to my applications. Lapackpp > > > supports the complex-value matrices very well on Linux. > > > > Lapackpp supports complex-valued matrices on Windows as well, only with > > the gcc compiler and not (yet) with the MSVC compiler. (And C++, in > > contrast to C, is not compiler-independent.) I only need those matrices > > with the gcc compiler, so I have no motivation for myself to spend this > > extra effort. |