Skip to content
Snippets Groups Projects
Commit f297db01 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Make an explicit constructor for complex numbers.

parent 375adc07
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@
REAL_TP TPROOT##_abs(TP a) { return hypot(a.x, a.y); } \
\
TP TPROOT##_fromreal(REAL_TP a) { return (TP)(a, 0); } \
TP TPROOT##_new(REAL_TP a, REAL_TP b) { return (TP)(a, b); } \
TP TPROOT##_conj(TP a) { return (TP)(a.x, -a.y); } \
\
TP TPROOT##_add(TP a, TP b) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment