You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/math/base/complex/round/README.md
+13-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
var cround =require( '@stdlib/math/base/complex/round' );
11
11
```
12
12
13
-
#### cround( re, im )
13
+
#### cround( \[out,]re, im )
14
14
15
15
Rounds a `complex` number comprised of a **real** component `re` and an **imaginary** component `im` to the nearest integer.
16
16
@@ -28,6 +28,18 @@ v = cround( NaN, NaN );
28
28
// returns [ NaN, NaN ]
29
29
```
30
30
31
+
By default, the function returns real and imaginary components as a two-element `array`. To avoid unnecessary memory allocation, the function supports providing an output (destination) object.
0 commit comments