ianhinder / Kranc

A Mathematica package for generating code for solving time dependent partial differential equations
http://kranccode.org
GNU General Public License v2.0
28 stars 10 forks source link

Support complex numbers #78

Open eschnett opened 12 years ago

eschnett commented 12 years ago

Complex numbers and their friends can greatly simplify systems of PDEs. Support this.

The user would specify a C++ datatype that supports +- (linear combinations) as well as */ (multiplication and division). Kranc would use this datatype instead of CCTK_REAL. The datatype would probably be represented as a vector of N CCTK_REALs (e.g. N=2 for complex numbers, N=4 for quaternions, etc.).