Skip to content

Commit 2871094

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <kgryte@gmail.com>
1 parent d642697 commit 2871094

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/node_modules/@stdlib/ndarray/base/unary/lib/3d_blocked_accessors.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ var blockSize = require( '@stdlib/ndarray/base/unary-tiling-block-size' );
5353
* @example
5454
* var Complex64Array = require( '@stdlib/array/complex64' );
5555
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
56+
* var realf = require( '@stdlib/complex/float32/real' );
57+
* var imagf = require( '@stdlib/complex/float32/imag' );
5658
*
5759
* function scale( z ) {
58-
* return new Complex64( z.re*10.0, z.im*10.0 );
60+
* return new Complex64( realf(z)*10.0, imagf(z)*10.0 );
5961
* }
6062
*
6163
* // Create data buffers:

0 commit comments

Comments
 (0)