One simple question about complex number

2009-10-22 Thread Yujie
Hi, PETSc Developers, What is the difference between PETSc complex number and stl::complex. If I define a variable var using stl::complex, whether is it ok to do var=2.0+PETSC_i*3.0? Thanks a lot. Regards, Yujie -- next part -- An HTML attachment was scrubbed... URL:

One simple question about complex number

2009-10-22 Thread Satish Balay
we use 'std:complex' with --with-clanguage=cxx [and with c - we use c99 complex support]. I'm not sure what stl::complex is. Satish On Thu, 22 Oct 2009, Yujie wrote: Hi, PETSc Developers, What is the difference between PETSc complex number and stl::complex. If I define a variable var using

One simple question about complex number

2009-10-22 Thread Yujie
Thank you for you reply, Satish. STL is Standard Template Library. I think stl::complex should be the same with std::complex. Regards, Yujie On Thu, Oct 22, 2009 at 3:05 PM, Satish Balay balay at mcs.anl.gov wrote: we use 'std:complex' with --with-clanguage=cxx [and with c - we use c99

One simple question about complex number

2009-10-22 Thread Jed Brown
Yujie wrote: Thank you for you reply, Satish. STL is Standard Template Library. I think stl::complex should be the same with std::complex. The STL complex type is std::complex (STL uses the namespace std::), are you sure that you have an stl::complex? Jed -- next part