Skip to content

Commit 69a388f

Browse files
committed
chore: add array datatype
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 6579d31 commit 69a388f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

lib/node_modules/@stdlib/blas/ext/base/wasm/dnansumkbn2/docs/types/index.d.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ interface Module extends ModuleWrapper {
147147
* var xptr = 0;
148148
*
149149
* // Write vector values to module memory:
150-
* mod.write( xptr, [ 1, 2, 3, NaN] );
150+
* var x = new Float64Array( [ 1, 2, 3, NaN ] );
151+
*
152+
* mod.write( xptr, x );
151153
*
152154
* // Perform computation:
153155
* var out = mod.main( N, xptr, 1 );
@@ -190,7 +192,9 @@ interface Module extends ModuleWrapper {
190192
* var xptr = 0;
191193
*
192194
* // Write vector values to module memory:
193-
* mod.write( xptr, [ 1, 2, 3, NaN ] );
195+
* var x = new Float64Array( [ 1, 2, 3, NaN ] );
196+
*
197+
* mod.write( xptr, x );
194198
*
195199
* // Perform computation:
196200
* var out = mod.ndarray( N, xptr, 1, 0 );
@@ -248,6 +252,7 @@ interface Routine extends ModuleWrapper {
248252
*
249253
* @example
250254
* var Memory = require( '@stdlib/wasm/memory' );
255+
* var Float64Array = require( '@stdlib/array/float64' );
251256
*
252257
* // Create a new memory instance with an initial size of 10 pages (640KiB) and a maximum size of 100 pages (6.4MiB):
253258
* var mem = new Memory({
@@ -272,7 +277,9 @@ interface Routine extends ModuleWrapper {
272277
* var xptr = 0;
273278
*
274279
* // Write vector values to module memory:
275-
* mod.write( xptr, [ 1, 2, 3, NaN ] );
280+
* var x = new Float64Array( [ 1, 2, 3, NaN ] );
281+
*
282+
* mod.write( xptr, x );
276283
*
277284
* // Perform computation:
278285
* var out = mod.main( N, xptr, 1 );

lib/node_modules/@stdlib/blas/ext/base/wasm/dnansumkbn2/lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@
6969
* var xptr = 0;
7070
*
7171
* // Write vector values to module memory:
72-
* mod.write( xptr, [ 1, 2, 3, NaN ] );
72+
* var x = new Float64Array( [ 1, 2, 3, NaN ] );
73+
*
74+
* mod.write( xptr, x );
7375
*
7476
* // Perform computation:
7577
* var sum = mod.main( N, xptr, 1 );

0 commit comments

Comments
 (0)