@@ -229,8 +229,6 @@ declare function scalar2ndarray( value: number, options: Float32Options ): float
229229*
230230* @example
231231* var Complex128 = require( '@stdlib/complex/float64/ctor' );
232- * var real = require( '@stdlib/complex/float64/real' );
233- * var imag = require( '@stdlib/complex/float64/imag' );
234232*
235233* var v = new Complex128( 1.0, 2.0 );
236234*
@@ -245,14 +243,8 @@ declare function scalar2ndarray( value: number, options: Float32Options ): float
245243* var dt = x.dtype;
246244* // returns 'complex128'
247245*
248- * var v = x.get();
249- * // returns <Complex128>
250- *
251- * var re = real( v );
252- * // returns 1.0
253- *
254- * var im = imag( v );
255- * // returns 2.0
246+ * var buf = x.data;
247+ * // buf => <Complex128Array>[ 1.0, 2.0 ]
256248*/
257249declare function scalar2ndarray ( value : number | ComplexLike , options : Complex128Options ) : complex128ndarray ;
258250
@@ -268,9 +260,7 @@ declare function scalar2ndarray( value: number | ComplexLike, options: Complex12
268260* @returns zero-dimensional ndarray
269261*
270262* @example
271- * var Complex64 = require( '@stdlib/complex/float64/ctor' );
272- * var realf = require( '@stdlib/complex/float32/real' );
273- * var imagf = require( '@stdlib/complex/float32/imag' );
263+ * var Complex64 = require( '@stdlib/complex/float32/ctor' );
274264*
275265* var v = new Complex64( 1.0, 2.0 );
276266*
@@ -285,14 +275,8 @@ declare function scalar2ndarray( value: number | ComplexLike, options: Complex12
285275* var dt = x.dtype;
286276* // returns 'complex64'
287277*
288- * var v = x.get();
289- * // returns <Complex64>
290- *
291- * var re = realf( v );
292- * // returns 1.0
293- *
294- * var im = imagf( v );
295- * // returns 2.0
278+ * var buf = x.data;
279+ * // buf => <Complex64Array>[ 1.0, 2.0 ]
296280*/
297281declare function scalar2ndarray ( value : number | ComplexLike , options : Complex64Options ) : complex64ndarray ;
298282
0 commit comments