Skip to content

Commit f40114a

Browse files
committed
chore: clean-up
--- 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: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - 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: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 9b3915c commit f40114a

File tree

12 files changed

+307
-227
lines changed

12 files changed

+307
-227
lines changed

lib/node_modules/@stdlib/lapack/base/dlaset/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ var Float64Array = require( '@stdlib/array/float64' );
3939

4040
var A = new Float64Array( 4 );
4141

42-
dlaset( 'row-major', 'all', 2, 2, 0.0, 1.0, A, 2 );
43-
// A => <Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
42+
dlaset( 'row-major', 'all', 2, 2, 2.0, 1.0, A, 2 );
43+
// A => <Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
4444
```
4545

4646
The function has the following parameters:
@@ -61,14 +61,14 @@ Note that indexing is relative to the first index. To introduce an offset, use [
6161
```javascript
6262
var Float64Array = require( '@stdlib/array/float64' );
6363

64-
// Initial arrays...
64+
// Initial array:
6565
var A0 = new Float64Array( 5 );
6666

67-
// Create offset views...
67+
// Create offset view:
6868
var A1 = new Float64Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
6969

70-
dlaset( 'row-major', 'all', 2, 2, 0.0, 1.0, A1, 2 );
71-
// A0 => <Float64Array>[ 0.0, 1.0, 0.0, 0.0, 1.0 ]
70+
dlaset( 'row-major', 'all', 2, 2, 2.0, 1.0, A1, 2 );
71+
// A0 => <Float64Array>[ 0.0, 1.0, 2.0, 2.0, 1.0 ]
7272
```
7373

7474
#### dlaset.ndarray( uplo, M, N, alpha, beta, A, sa1, sa2, oa )
@@ -80,8 +80,8 @@ var Float64Array = require( '@stdlib/array/float64' );
8080

8181
var A = new Float64Array( 4 );
8282

83-
dlaset.ndarray( 'all', 2, 2, 0.0, 1.0, A, 2, 1, 0 );
84-
// A => <Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
83+
dlaset.ndarray( 'all', 2, 2, 2.0, 1.0, A, 2, 1, 0 );
84+
// A => <Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
8585
```
8686

8787
The function has the following parameters:
@@ -103,8 +103,8 @@ var Float64Array = require( '@stdlib/array/float64' );
103103

104104
var A = new Float64Array( 5 );
105105

106-
dlaset.ndarray( 'all', 2, 2, 0.0, 1.0, A, 2, 1, 1 );
107-
// A => <Float64Array>[ 0.0, 1.0, 0.0, 0.0, 1.0 ]
106+
dlaset.ndarray( 'all', 2, 2, 2.0, 1.0, A, 2, 1, 1 );
107+
// A => <Float64Array>[ 0.0, 1.0, 2.0, 2.0, 1.0 ]
108108
```
109109

110110
</section>

lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function createBenchmark( order, N ) {
6767

6868
b.tic();
6969
for ( i = 0; i < b.iterations; i++ ) {
70-
z = dlaset( order, 'all', N, N, 1.0, 0.0, A, N );
70+
z = dlaset( order, 'all', N, N, i, i+1, A, N );
7171
if ( isnan( z[ i%z.length ] ) ) {
7272
b.fail( 'should not return NaN' );
7373
}
@@ -106,7 +106,7 @@ function main() {
106106
for ( i = min; i <= max; i++ ) {
107107
N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
108108
f = createBenchmark( ord, N );
109-
bench( pkg+'::square_matrix:order='+ord+',size='+(N*N), f );
109+
bench( pkg+'::equidimensional:order='+ord+',size='+(N*N), f );
110110
}
111111
}
112112
}

lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function createBenchmark( order, N ) {
7777

7878
b.tic();
7979
for ( i = 0; i < b.iterations; i++ ) {
80-
z = dlaset( 'all', N, N, 1.0, 0.0, A, sa1, sa2, 0 );
80+
z = dlaset( 'all', N, N, i, i+1, A, sa1, sa2, 0 );
8181
if ( isnan( z[ i%z.length ] ) ) {
8282
b.fail( 'should not return NaN' );
8383
}
@@ -116,7 +116,7 @@ function main() {
116116
for ( i = min; i <= max; i++ ) {
117117
N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
118118
f = createBenchmark( ord, N );
119-
bench( pkg+'::square_matrix:order='+ord+',size='+(N*N), f );
119+
bench( pkg+'::equidimensional:order='+ord+',size='+(N*N), f );
120120
}
121121
}
122122
}

lib/node_modules/@stdlib/lapack/base/dlaset/docs/repl.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( order, uplo, M, N, alpha, beta, A, LDA )
3-
Sets the off-diagonal elements and the diagonal elements of a
4-
double-precision floating-point matrix to specified values.
3+
Sets the off-diagonal elements and the diagonal elements of a double-
4+
precision floating-point matrix to specified values.
55

66
Indexing is relative to the first index. To introduce an offset, use
77
typed array views.
@@ -43,18 +43,18 @@
4343
Examples
4444
--------
4545
> var A = new {{alias:@stdlib/array/float64}}( 4 );
46-
> {{alias}}( 'row-major', 'all', 2, 2, 0.0, 1.0, A, 2 )
47-
<Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
46+
> {{alias}}( 'row-major', 'all', 2, 2, 2.0, 1.0, A, 2 )
47+
<Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
4848

4949

5050
{{alias}}.ndarray( uplo, M, N, alpha, beta, A, sa1, sa2, oa )
51-
Sets the off-diagonal elements and the diagonal elements of a
52-
double-precision floating-point matrix to specified values using
53-
alternative indexing semantics.
51+
Sets the off-diagonal elements and the diagonal elements of a double-
52+
precision floating-point matrix to specified values using alternative
53+
indexing semantics.
5454

5555
While typed array views mandate a view offset based on the underlying
56-
buffer, the offset parameter supports indexing semantics based on a
57-
starting index.
56+
buffer, the offset parameter supports indexing semantics based on a starting
57+
index.
5858

5959
Parameters
6060
----------
@@ -94,8 +94,8 @@
9494
Examples
9595
--------
9696
> var A = new {{alias:@stdlib/array/float64}}( 4 );
97-
> {{alias}}.ndarray( 'all', 2, 2, 0.0, 1.0, A, 2, 1, 0 )
98-
<Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
97+
> {{alias}}.ndarray( 'all', 2, 2, 2.0, 1.0, A, 2, 1, 0 )
98+
<Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
9999

100100
See Also
101101
--------

lib/node_modules/@stdlib/lapack/base/dlaset/docs/types/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ interface Routine {
4444
*
4545
* var A = new Float64Array( 4 );
4646
*
47-
* dlaset( 'row-major', 'all', 2, 2, 0.0, 1.0, A, 2 );
48-
* // A => <Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
47+
* dlaset( 'row-major', 'all', 2, 2, 2.0, 1.0, A, 2 );
48+
* // A => <Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
4949
*/
5050
( order: Layout, uplo: string, M: number, N: number, alpha: number, beta: number, A: Float64Array, LDA: number ): Float64Array;
5151

@@ -68,8 +68,8 @@ interface Routine {
6868
*
6969
* var A = new Float64Array( 4 );
7070
*
71-
* dlaset.ndarray( 'all', 2, 2, 0.0, 1.0, A, 2, 1, 0 );
72-
* // A => <Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
71+
* dlaset.ndarray( 'all', 2, 2, 2.0, 1.0, A, 2, 1, 0 );
72+
* // A => <Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
7373
*/
7474
ndarray( uplo: string, M: number, N: number, alpha: number, beta: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number ): Float64Array;
7575
}
@@ -92,16 +92,16 @@ interface Routine {
9292
*
9393
* var A = new Float64Array( 4 );
9494
*
95-
* dlaset( 'row-major', 'all', 2, 2, 0.0, 1.0, A, 2 );
96-
* // A => <Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
95+
* dlaset( 'row-major', 'all', 2, 2, 2.0, 1.0, A, 2 );
96+
* // A => <Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
9797
*
9898
* @example
9999
* var Float64Array = require( '@stdlib/array/float64' );
100100
*
101101
* var A = new Float64Array( 4 );
102102
*
103-
* dlaset.ndarray( 'all', 2, 2, 0.0, 1.0, A, 2, 1, 0 );
104-
* // A => <Float64Array>[ 1.0, 0.0, 0.0, 1.0 ]
103+
* dlaset.ndarray( 'all', 2, 2, 2.0, 1.0, A, 2, 1, 0 );
104+
* // A => <Float64Array>[ 1.0, 2.0, 2.0, 1.0 ]
105105
*/
106106
declare var dlaset: Routine;
107107

0 commit comments

Comments
 (0)