Skip to content

Commit 3354312

Browse files
committed
Update type promotion rules for complex dtypes
- Add a table with promotion rules - Update type promotion lattice diagram Closes data-apisgh-477 Closes data-apisgh-478
1 parent 67ab474 commit 3354312

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

spec/API_specification/type_promotion.rst

+19
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,25 @@ where
102102
- **f4**: single-precision (32-bit) floating-point number (i.e., ``float32``)
103103
- **f8**: double-precision (64-bit) floating-point number (i.e., ``float64``)
104104

105+
Complex floating-point type promotion table
106+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107+
108+
+---------+-----+-----+
109+
| | c8 | c16 |
110+
+=========+=====+=====+
111+
| **c8** | c8 | c16 |
112+
+---------+-----+-----+
113+
| **c16** | c16 | c16 |
114+
+---------+-----+-----+
115+
116+
where
117+
118+
- **c8**: single-precision complex floating-point number (i.e., ``complex64``)
119+
composed of two single-precision (32-bit) floating-point numbers
120+
- **c16**: double-precision complex floating-point number (i.e., ``complex128``)
121+
composed of two double-precision (64-bit) floating-point numbers
122+
123+
105124
Notes
106125
~~~~~
107126

-32.2 KB
Loading

0 commit comments

Comments
 (0)