Skip to content

Commit 14f1b09

Browse files
committed
Fix example and add example
1 parent 1bd5b3f commit 14f1b09

File tree

1 file changed

+10
-1
lines changed
  • lib/node_modules/@stdlib/array/complex64/lib

1 file changed

+10
-1
lines changed

lib/node_modules/@stdlib/array/complex64/lib/main.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,20 @@ Object.defineProperty( Complex64Array, 'BYTES_PER_ELEMENT', {
280280
*
281281
* @example
282282
* var Complex64 = require( '@stdlib/complex/float32' );
283+
*
284+
* var arr = Complex64Array.from( [ new Complex64( 1.0, 1.0 ) ] );
285+
* // returns <Complex64Array>
286+
*
287+
* var len = arr.length;
288+
* // returns 1
289+
*
290+
* @example
291+
* var Complex64 = require( '@stdlib/complex/float32' );
283292
* var real = require( '@stdlib/complex/real' );
284293
* var imag = require( '@stdlib/complex/imag' );
285294
*
286295
* function clbk( v ) {
287-
* return new Complex( real(v)*2.0, imag(v)*2.0 );
296+
* return new Complex64( real(v)*2.0, imag(v)*2.0 );
288297
* }
289298
*
290299
* var arr = Complex64Array.from( [ new Complex64( 1.0, 1.0 ) ], clbk );

0 commit comments

Comments
 (0)