File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed
lib/node_modules/@stdlib/blas/base/wasm/dznrm2 Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -259,25 +259,18 @@ var oneTo = require( '@stdlib/array/one-to' );
259259var Complex128Array = require ( ' @stdlib/array/complex128' );
260260var dznrm2 = require ( ' @stdlib/blas/base/wasm/dznrm2' );
261261
262- function main () {
263- var xbuf;
264- var out;
265- var x;
266- var N ;
267-
268- // Specify a vector length:
269- N = 5 ;
262+ // Specify a vector length:
263+ var N = 5 ;
270264
271- // Create an input array:
272- xbuf = oneTo ( N * 2 , ' float64' );
273- x = new Complex128Array ( xbuf .buffer );
265+ // Create an input array:
266+ var xbuf = oneTo ( N * 2 , ' float64' );
267+ var x = new Complex128Array ( xbuf .buffer );
274268
275- // Perform computation:
276- out = dznrm2 .ndarray ( N , x, 1 , 0 );
269+ // Perform computation:
270+ var out = dznrm2 .ndarray ( N , x, 1 , 0 );
277271
278- // Print the result:
279- console .log ( out );
280- }
272+ // Print the result:
273+ console .log ( out );
281274```
282275
283276</section >
You can’t perform that action at this time.
0 commit comments