summaryrefslogtreecommitdiff
path: root/docs/src/userguide/cpow_table.csv
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/userguide/cpow_table.csv')
-rw-r--r--docs/src/userguide/cpow_table.csv6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/src/userguide/cpow_table.csv b/docs/src/userguide/cpow_table.csv
new file mode 100644
index 000000000..a781e77c2
--- /dev/null
+++ b/docs/src/userguide/cpow_table.csv
@@ -0,0 +1,6 @@
+Type of ``a``,Type of ``b``,``cpow==True``,``cpow==False``
+C integer,Negative integer compile-time constant,Return type is C double,Return type is C double (special case)
+C integer,C integer (known to be >= 0 at compile time),Return type is integer,Return type is integer
+C integer,C integer (may be negative),Return type is integer,"Return type is C double (note that Python would dynamically pick ``int`` or ``float`` here, while Cython doesn’t)"
+C floating point,C integer,Return type is floating point,Return type is floating point
+C floating point (or C integer),C floating point,"Return type is floating point, result is NaN if the result would be complex",Either a C real or complex number at cost of some speed