Skip to content

Commit c101ea2

Browse files
fix: change in params
--- 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: passed - 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: passed - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent c171387 commit c101ea2

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/benchmark/benchmark.module.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function createBenchmark( len ) {
103103

104104
b.tic();
105105
for ( i = 0; i < b.iterations; i++ ) {
106-
v = mod.ndarray( len, xptr, 1, 0 );
106+
v = mod.ndarray( len, 1, xptr, 1, 0 );
107107
if ( isnan( v ) ) {
108108
b.fail( 'should not return NaN' );
109109
}

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@
444444
[ 1, 2, 3, 4 ]
445445

446446

447-
{{alias}}.Module.prototype.main( N, xp, sx )
447+
{{alias}}.Module.prototype.main( N, correction, xp, sx )
448448
Computes the variance of a double-precision floating-point strided array
449449
ignoring `NaN` values and using Welford's algorithm.
450450

@@ -494,7 +494,7 @@
494494
1.0
495495

496496

497-
{{alias}}.Module.prototype.ndarray( N, xp, sx, ox )
497+
{{alias}}.Module.prototype.ndarray( N, correction, xp, sx, ox )
498498
Computes the variance of a double-precision floating-point strided array
499499
ignoring `NaN` values and using Welford's algorithm and alternative
500500
indexing semantics.

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*
3333
* // Perform operation:
3434
* var v = dnanvariancewd.main( x.length, 1, x, 1 );
35-
* // returns ~6.3333
35+
* // returns ~4.3333
3636
*
3737
* @example
3838
* var Float64Array = require( '@stdlib/array/float64' );
@@ -43,7 +43,7 @@
4343
*
4444
* // Perform operation:
4545
* var v = dnanvariancewd.ndarray( 5, 1, x, 2, 1 );
46-
* // returns ~4.7857
46+
* // returns 6.25
4747
*
4848
* @example
4949
* var Memory = require( '@stdlib/wasm/memory' );

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var Routine = require( './routine.js' );
3939
*
4040
* // Perform operation:
4141
* var v = dnanvariancewd.main( 4, 1, x, 1 );
42-
* // returns ~6.3333
42+
* // returns ~4.3333
4343
*
4444
* @example
4545
* var Float64Array = require( '@stdlib/array/float64' );
@@ -49,7 +49,7 @@ var Routine = require( './routine.js' );
4949
*
5050
* // Perform operation:
5151
* var v = dnanvariancewd.ndarray( 5, 1, x, 2, 1 );
52-
* // returns ~4.7857
52+
* // returns 6.25
5353
*/
5454
var dnanvariancewd = new Routine();
5555
dnanvariancewd.initializeSync(); // eslint-disable-line node/no-sync

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/lib/routine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var Module = require( './module.js' );
7070
*
7171
* // Perform operation:
7272
* var sum = dnanvariancewd.ndarray( 5, 1, x, 2, 1 );
73-
* // returns ~4.7857
73+
* // returns 6.25
7474
*/
7575
function Routine() {
7676
if ( !( this instanceof Routine ) ) {
@@ -146,7 +146,7 @@ setReadOnly( Routine.prototype, 'main', function dnanvariancewd( N, correction,
146146
*
147147
* // Perform operation:
148148
* var v = dnanvariancewd.ndarray( 5, 1, x, 2, 1 );
149-
* // returns ~4.7857
149+
* // returns 6.25
150150
*/
151151
setReadOnly( Routine.prototype, 'ndarray', function dnanvariancewd( N, correction, x, strideX, offsetX ) {
152152
var ptrs;

lib/node_modules/@stdlib/stats/strided/wasm/dnanvariancewd/src/main.wat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
;; @license Apache-2.0
2+
;;
3+
;; Copyright (c) 2025 The Stdlib Authors.
4+
;;
5+
;; Licensed under the Apache License, Version 2.0 (the "License");
6+
;; you may not use this file except in compliance with the License.
7+
;; You may obtain a copy of the License at
8+
;;
9+
;; http://www.apache.org/licenses/LICENSE-2.0
10+
;;
11+
;; Unless required by applicable law or agreed to in writing, software
12+
;; distributed under the License is distributed on an "AS IS" BASIS,
13+
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
;; See the License for the specific language governing permissions and
15+
;; limitations under the License.
16+
117
(module
218
(type (;0;) (func))
319
(type (;1;) (func (param i32 f64 i32 i32) (result f64)))

0 commit comments

Comments
 (0)