Skip to content

Commit 448c54b

Browse files
authored
chore: clean-up
PR-URL: #14292 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent a307979 commit 448c54b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

  • lib/node_modules/@stdlib

‎lib/node_modules/@stdlib/blas/base/ndarray/ssymv/benchmark/benchmark.js‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ var options = {
4545
* Creates a benchmark function.
4646
*
4747
* @private
48-
* @param {PositiveInteger} len - array length
48+
* @param {PositiveInteger} N - number of elements along each dimension
4949
* @returns {Function} benchmark function
5050
*/
51-
function createBenchmark( len ) {
51+
function createBenchmark( N ) {
5252
var alpha;
5353
var uplo;
5454
var beta;
@@ -57,14 +57,14 @@ function createBenchmark( len ) {
5757
var x;
5858
var y;
5959

60-
A = uniform( [ len, len ], -100.0, 100.0, options );
60+
A = uniform( [ N, N ], -100.0, 100.0, options );
6161
k = scalar2ndarray( 1, {
6262
'dtype': 'generic'
6363
});
6464
striu2tril( [ A, A, k ] );
6565

66-
x = uniform( [ len ], -100.0, 100.0, options );
67-
y = uniform( [ len ], -100.0, 100.0, options );
66+
x = uniform( [ N ], -100.0, 100.0, options );
67+
y = uniform( [ N ], -100.0, 100.0, options );
6868

6969
uplo = scalar2ndarray( resolveEnum( 'upper' ), {
7070
'dtype': 'int32'
@@ -92,7 +92,7 @@ function createBenchmark( len ) {
9292
}
9393
}
9494
b.toc();
95-
if ( isnanf( z.get( i%len ) ) ) {
95+
if ( isnanf( z.get( i%N ) ) ) {
9696
b.fail( 'should not return NaN' );
9797
}
9898
b.pass( 'benchmark finished' );
@@ -109,19 +109,19 @@ function createBenchmark( len ) {
109109
* @private
110110
*/
111111
function main() {
112-
var len;
113112
var min;
114113
var max;
114+
var N;
115115
var f;
116116
var i;
117117

118118
min = 1; // 10^min
119119
max = 3; // 10^max
120120

121121
for ( i = min; i <= max; i++ ) {
122-
len = pow( 10, i );
123-
f = createBenchmark( len );
124-
bench( format( '%s:len=%d', pkg, len ), f );
122+
N = pow( 10, i );
123+
f = createBenchmark( N );
124+
bench( format( '%s:size=%d', pkg, N*N ), f );
125125
}
126126
}
127127

‎lib/node_modules/@stdlib/stats/base/dists/geometric/variance/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ double out = stdlib_base_dists_geometric_variance( 0.5 );
156156

157157
The function accepts the following arguments:
158158

159-
- **p**: `[in] double` success probablity.
159+
- **p**: `[in] double` success probability.
160160

161161
```c
162162
double stdlib_base_dists_geometric_variance( const double p );

0 commit comments

Comments
 (0)