@@ -187,8 +187,6 @@ 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 );
@@ -198,11 +196,6 @@ type Constructor = new( re: number, im: number ) => ComplexLike;
198196* var z = f();
199197* // returns <Complex64>
200198*
201- * var re = realf( z );
202- * // returns <number>
203- *
204- * var im = imagf( z );
205- * // returns <number>
206199*/
207200declare function wrap ( fcn : Nullary , nargs : 0 , ctor : Constructor ) : WrappedNullary ;
208201
@@ -223,21 +216,14 @@ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): WrappedNulla
223216* @example
224217* var Complex64 = require( '@stdlib/complex/float32/ctor' );
225218* var identityf = require( '@stdlib/number/float32/base/identity' );
226- * var realf = require( '@stdlib/complex/float32/real' );
227- * var imagf = require( '@stdlib/complex/float32/imag' );
228219*
229220* var f = wrap( identityf, 1, Complex64 );
230221*
231222* // ...
232223*
233224* var z = f( 3.0 );
234- * // returns <Complex64>
225+ * // returns <Complex64>[ 3.0, 0.0 ]
235226*
236- * var re = realf( z );
237- * // returns 3.0
238- *
239- * var im = imagf( z );
240- * // returns 0.0
241227*/
242228declare function wrap ( fcn : Unary , nargs : 1 , ctor : Constructor ) : WrappedUnary ;
243229
@@ -258,21 +244,14 @@ declare function wrap( fcn: Unary, nargs: 1, ctor: Constructor ): WrappedUnary;
258244* @example
259245* var Complex64 = require( '@stdlib/complex/float32/ctor' );
260246* var addf = require( '@stdlib/number/float32/base/add' );
261- * var realf = require( '@stdlib/complex/float32/real' );
262- * var imagf = require( '@stdlib/complex/float32/imag' );
263247*
264248* var f = wrap( addf, 2, Complex64 );
265249*
266250* // ...
267251*
268252* var z = f( 3.0, 4.0 );
269- * // returns <Complex64>
253+ * // returns <Complex64>[ 7.0, 0.0 ]
270254*
271- * var re = realf( z );
272- * // returns 7.0
273- *
274- * var im = imagf( z );
275- * // returns 0.0
276255*/
277256declare function wrap ( fcn : Binary , nargs : 2 , ctor : Constructor ) : WrappedBinary ;
278257
@@ -292,8 +271,6 @@ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary
292271*
293272* @example
294273* var Complex64 = require( '@stdlib/complex/float32/ctor' );
295- * var realf = require( '@stdlib/complex/float32/real' );
296- * var imagf = require( '@stdlib/complex/float32/imag' );
297274*
298275* function add( x, y, z ) {
299276* return x + y + z;
@@ -304,13 +281,8 @@ declare function wrap( fcn: Binary, nargs: 2, ctor: Constructor ): WrappedBinary
304281* // ...
305282*
306283* var z = f( 3.0, 4.0, 5.0 );
307- * // returns <Complex64>
308- *
309- * var re = realf( z );
310- * // returns 12.0
284+ * // returns <Complex64>[ 12.0, 0.0 ]
311285*
312- * var im = imagf( z );
313- * // returns 0.0
314286*/
315287declare function wrap ( fcn : Ternary , nargs : 3 , ctor : Constructor ) : WrappedTernary ;
316288
@@ -330,8 +302,6 @@ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTerna
330302*
331303* @example
332304* var Complex64 = require( '@stdlib/complex/float32/ctor' );
333- * var realf = require( '@stdlib/complex/float32/real' );
334- * var imagf = require( '@stdlib/complex/float32/imag' );
335305*
336306* function add( x, y, z, w ) {
337307* return x + y + z + w;
@@ -342,13 +312,8 @@ declare function wrap( fcn: Ternary, nargs: 3, ctor: Constructor ): WrappedTerna
342312* // ...
343313*
344314* var z = f( 3.0, 4.0, 5.0, 6.0 );
345- * // returns <Complex64>
346- *
347- * var re = realf( z );
348- * // returns 18.0
315+ * // returns <Complex64>[ 18.0, 0.0]
349316*
350- * var im = imagf( z );
351- * // returns 0.0
352317*/
353318declare function wrap ( fcn : Quaternary , nargs : 4 , ctor : Constructor ) : WrappedQuaternary ;
354319
@@ -368,8 +333,6 @@ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQu
368333*
369334* @example
370335* var Complex64 = require( '@stdlib/complex/float32/ctor' );
371- * var realf = require( '@stdlib/complex/float32/real' );
372- * var imagf = require( '@stdlib/complex/float32/imag' );
373336*
374337* function add( x, y, z, w, v ) {
375338* return x + y + z + w + v;
@@ -380,13 +343,8 @@ declare function wrap( fcn: Quaternary, nargs: 4, ctor: Constructor ): WrappedQu
380343* // ...
381344*
382345* 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
346+ * // returns <Complex64>[ 25.0, 0.0]
387347*
388- * var im = imagf( z );
389- * // returns 0.0
390348*/
391349declare function wrap ( fcn : Quinary , nargs : 5 , ctor : Constructor ) : WrappedQuinary ;
392350
@@ -406,9 +364,7 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina
406364*
407365* @example
408366* var Complex64 = require( '@stdlib/complex/float32/ctor' );
409- * var realf = require( '@stdlib/complex/float32/real' );
410- * var imagf = require( '@stdlib/complex/float32/imag' );
411- *
367+ *
412368* function add( x, y, z, w, v, t ) {
413369* return x + y + z + w + v + t;
414370* }
@@ -418,13 +374,8 @@ declare function wrap( fcn: Quinary, nargs: 5, ctor: Constructor ): WrappedQuina
418374* // ...
419375*
420376* 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
377+ * // returns <Complex64>[ 33.0, 0.0 ]
425378*
426- * var im = imagf( z );
427- * // returns 0.0
428379*/
429380declare function wrap ( fcn : Nary , nargs : number , ctor : Constructor ) : WrappedNary ;
430381
0 commit comments