Skip to content

Commit 646848d

Browse files
committed
Copy edits
1 parent 1065d24 commit 646848d

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

lib/node_modules/@stdlib/blas/base/snrm2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ limitations under the License.
2020

2121
# snrm2
2222

23-
> Calculate the L2-norm of a vector `x`.
23+
> Calculate the L2-norm of a single-precision floating-point vector.
2424
2525
<section class="intro>">
2626

2727
The [L2-norm][l2-norm] is defined as
2828

29-
<!-- <equation class="equation" label="eq:l2_norm" align="center raw="\|\mathbf{x}\|_2 = \sqrt{\mathbf{x}^T\mathbf{x}}" -->
29+
<!-- <equation class="equation" label="eq:l2_norm" align="center raw="\|\mathbf{x}\|_2 = \sqrt{\mathbf{x}^T\mathbf{x}}" alt="L2-norm definition."> -->
3030

3131
<div class="equation" align="center" data-raw-text="\|\mathbf{x}\|_2 = \sqrt{\mathbf{x}^T\mathbf{x}}" data-equation="eq:l2_norm">
3232
<img src="" alt="L2-norm definition.">

lib/node_modules/@stdlib/blas/base/snrm2/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stdlib/blas/base/snrm2",
33
"version": "0.0.0",
4-
"description": "Calculate the L2-norm of a vector.",
4+
"description": "Calculate the L2-norm of a single-precision floating-point vector.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",
@@ -59,10 +59,11 @@
5959
"level 1",
6060
"snrm2",
6161
"nrm2",
62-
"euclidean norm",
63-
"euclidean distance",
62+
"euclidean",
63+
"magnitude",
6464
"2-norm",
6565
"l2-norm",
66+
"norm",
6667
"distance",
6768
"length",
6869
"vector",

lib/node_modules/@stdlib/blas/base/snrm2/test/test.ndarray.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ tape( 'the function supports a `stride` parameter', function test( t ) {
7373
var z;
7474

7575
x = new Float32Array([
76-
1.0, // 0
76+
1.0, // 0
7777
2.0,
78-
2.0, // 1
78+
2.0, // 1
7979
-7.0,
8080
-2.0, // 2
8181
3.0,
82-
4.0, // 3
82+
4.0, // 3
8383
2.0
8484
]);
8585

@@ -123,7 +123,6 @@ tape( 'the function supports an `offset` parameter', function test( t ) {
123123
N = floor(x.length / 2);
124124

125125
z = snrm2( N, x, 2, 1 );
126-
127126
t.strictEqual( z, 5.0, 'returns expected value' );
128127

129128
t.end();

lib/node_modules/@stdlib/blas/base/snrm2/test/test.snrm2.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ tape( 'the function supports a `stride` parameter', function test( t ) {
7373
var z;
7474

7575
x = new Float32Array([
76-
1.0, // 0
76+
1.0, // 0
7777
2.0,
78-
2.0, // 1
78+
2.0, // 1
7979
-7.0,
8080
-2.0, // 2
8181
3.0,
82-
4.0, // 3
82+
4.0, // 3
8383
2.0
8484
]);
8585

@@ -119,14 +119,15 @@ tape( 'the function supports view offsets', function test( t ) {
119119
-2.0,
120120
2.0, // 2
121121
3.0,
122-
4.0, // 3
122+
4.0, // 3
123123
6.0
124124
]);
125+
125126
x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
126127
N = floor(x1.length / 2);
127128

128129
z = snrm2( N, x1, 2 );
129-
130130
t.strictEqual( z, 5.0, 'returns expected value' );
131+
131132
t.end();
132133
});

0 commit comments

Comments
 (0)