Skip to content

Commit 97217a5

Browse files
committed
Add complex number type definitions
1 parent e9f4eaa commit 97217a5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tools/docs/jsdoc/typedefs/numbers.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,21 @@
186186
*
187187
* @typedef {number} Probability
188188
*/
189+
190+
/**
191+
* A 64-bit complex number, in which the real and imaginary components are each stored as single-precision floating-point numbers.
192+
*
193+
* @typedef {Object} Complex64
194+
*/
195+
196+
/**
197+
* A 128-bit complex number, in which the real and imaginary components are each stored as double-precision floating-point numbers.
198+
*
199+
* @typedef {Object} Complex128
200+
*/
201+
202+
/**
203+
* A complex number.
204+
*
205+
* @typedef {(Complex64|Complex128)} Complex
206+
*/

0 commit comments

Comments
 (0)