@@ -187,22 +187,14 @@ type Constructor = new( re: number, im: number ) => ComplexLike;
187187*
188188* @example
189189* var Complex64 = require( '@stdlib/complex/float32/ctor' );
190- * var realf = require( '@stdlib/complex/float32/real' );
191- * var imagf = require( '@stdlib/complex/float32/imag' );
192190* var randu = require( '@stdlib/random/base/randu' );
193191*
194192* var f = wrap( randu, 0, Complex64 );
195193*
196194* // ...
197195*
198196* var z = f();
199- * // returns <Complex64>
200- *
201- * var re = realf( z );
202- * // returns <number>
203- *
204- * var im = imagf( z );
205- * // returns <number>
197+ * // e.g., returns <Complex64>[ <number>, <number> ]
206198*/
207199declare function wrap ( fcn : Nullary , nargs : 0 , ctor : Constructor ) : WrappedNullary ;
208200
@@ -223,21 +215,13 @@ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): WrappedNulla
223215* @example
224216* var Complex64 = require( '@stdlib/complex/float32/ctor' );
225217* var identityf = require( '@stdlib/number/float32/base/identity' );
226- * var realf = require( '@stdlib/complex/float32/real' );
227- * var imagf = require( '@stdlib/complex/float32/imag' );
228218*
229219* var f = wrap( identityf, 1, Complex64 );
230220*
231221* // ...
232222*
233223* var z = f( 3.0 );
234- * // returns <Complex64>
235- *
236- * var re = realf( z );
237- * // returns 3.0
238- *
239- * var im = imagf( z );
240- * // returns 0.0
224+ * // returns <Complex64>[ 3.0, 0.0 ]
241225*/
242226declare function wrap ( fcn : Unary , nargs : 1 , ctor : Constructor ) : WrappedUnary ;
243227
@@ -258,21 +242,13 @@ declare function wrap( fcn: Unary, nargs: 1, ctor: Constructor ): WrappedUnary;
258242* @example
259243* var Complex64 = require( '@stdlib/complex/float32/ctor' );
260244* var addf = require( '@stdlib/number/float32/base/add' );
261- * var realf = require( '@stdlib/complex/float32/real' );
262- * var imagf = require( '@stdlib/complex/float32/imag' );
263245*
264246* var f = wrap( addf, 2, Complex64 );
265247*
266248* // ...
267249*
268250* var z = f( 3.0, 4.0 );
269- * // returns <Complex64>
270- *
271- * var re = realf( z );
272- * // returns 7.0
273- *
274- * var im = imagf( z );
275- * // returns 0.0
251+ * // returns <Complex64>[ 7.0, 0.0 ]
276252*/
277253declare function wrap ( fcn : Binary , nargs : 2 , ctor : Constructor ) : WrappedBinary ;
278254
@@ -292,8 +268,6 @@ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary
292268*
293269* @example
294270* var Complex64 = require( '@stdlib/complex/float32/ctor' );
295- * var realf = require( '@stdlib/complex/float32/real' );
296- * var imagf = require( '@stdlib/complex/float32/imag' );
297271*
298272* function add( x, y, z ) {
299273* return x + y + z;
@@ -304,13 +278,7 @@ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary
304278* // ...
305279*
306280* var z = f( 3.0, 4.0, 5.0 );
307- * // returns <Complex64>
308- *
309- * var re = realf( z );
310- * // returns 12.0
311- *
312- * var im = imagf( z );
313- * // returns 0.0
281+ * // returns <Complex64>[ 12.0, 0.0 ]
314282*/
315283declare function wrap ( fcn : Ternary , nargs : 3 , ctor : Constructor ) : WrappedTernary ;
316284
@@ -330,8 +298,6 @@ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTerna
330298*
331299* @example
332300* var Complex64 = require( '@stdlib/complex/float32/ctor' );
333- * var realf = require( '@stdlib/complex/float32/real' );
334- * var imagf = require( '@stdlib/complex/float32/imag' );
335301*
336302* function add( x, y, z, w ) {
337303* return x + y + z + w;
@@ -342,13 +308,7 @@ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTerna
342308* // ...
343309*
344310* var z = f( 3.0, 4.0, 5.0, 6.0 );
345- * // returns <Complex64>
346- *
347- * var re = realf( z );
348- * // returns 18.0
349- *
350- * var im = imagf( z );
351- * // returns 0.0
311+ * // returns <Complex64>[ 18.0, 0.0 ]
352312*/
353313declare function wrap ( fcn : Quaternary , nargs : 4 , ctor : Constructor ) : WrappedQuaternary ;
354314
@@ -368,8 +328,6 @@ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQu
368328*
369329* @example
370330* var Complex64 = require( '@stdlib/complex/float32/ctor' );
371- * var realf = require( '@stdlib/complex/float32/real' );
372- * var imagf = require( '@stdlib/complex/float32/imag' );
373331*
374332* function add( x, y, z, w, v ) {
375333* return x + y + z + w + v;
@@ -380,13 +338,7 @@ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQu
380338* // ...
381339*
382340* var z = f( 3.0, 4.0, 5.0, 6.0, 7.0 );
383- * // returns <Complex64>
384- *
385- * var re = realf( z );
386- * // returns 25.0
387- *
388- * var im = imagf( z );
389- * // returns 0.0
341+ * // returns <Complex64>[ 25.0, 0.0 ]
390342*/
391343declare function wrap ( fcn : Quinary , nargs : 5 , ctor : Constructor ) : WrappedQuinary ;
392344
@@ -406,8 +358,6 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina
406358*
407359* @example
408360* var Complex64 = require( '@stdlib/complex/float32/ctor' );
409- * var realf = require( '@stdlib/complex/float32/real' );
410- * var imagf = require( '@stdlib/complex/float32/imag' );
411361*
412362* function add( x, y, z, w, v, t ) {
413363* return x + y + z + w + v + t;
@@ -418,13 +368,7 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina
418368* // ...
419369*
420370* var z = f( 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 );
421- * // returns <Complex64>
422- *
423- * var re = realf( z );
424- * // returns 33.0
425- *
426- * var im = imagf( z );
427- * // returns 0.0
371+ * // returns <Complex64>[ 33.0, 0.0 ]
428372*/
429373declare function wrap ( fcn : Nary , nargs : number , ctor : Constructor ) : WrappedNary ;
430374
0 commit comments