Skip to content

Commit af6e6a8

Browse files
committed
test: change variable naming
--- 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: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 393da2b commit af6e6a8

File tree

2 files changed

+86
-86
lines changed

2 files changed

+86
-86
lines changed

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

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -40,56 +40,56 @@ tape( 'the function has an arity of 7', function test( t ) {
4040
t.end();
4141
});
4242

43-
tape( 'the function calculates the dot product of two double-precision complex floating-point vectors `zx` and `zy`', function test( t ) {
43+
tape( 'the function calculates the dot product of two double-precision complex floating-point vectors `x` and `y`', function test( t ) {
4444
var dot;
45-
var zx;
46-
var zy;
45+
var x;
46+
var y;
4747

48-
zx = new Complex128Array( [ 4.0, 2.0, -3.0, 5.0, -1.0, 2.0, -5.0, 6.0 ] );
49-
zy = new Complex128Array( [ 2.0, 6.0, -1.0, -4.0, 8.0, 8.0, 2.0, -3.0 ] );
48+
x = new Complex128Array( [ 4.0, 2.0, -3.0, 5.0, -1.0, 2.0, -5.0, 6.0 ] );
49+
y = new Complex128Array( [ 2.0, 6.0, -1.0, -4.0, 8.0, 8.0, 2.0, -3.0 ] );
5050

51-
dot = zdotu( zx.length, zx, 1, 0, zy, 1, 0 );
51+
dot = zdotu( x.length, x, 1, 0, y, 1, 0 );
5252
t.strictEqual(isSameComplex128( dot, new Complex128( 3, 70 ) ), true, 'returns expected value' );
5353

54-
zx = new Complex128Array( [ 3.0, -4.0, 1.0, 2.0 ] );
55-
zy = new Complex128Array( [ 1.0, -2.0, 3.0, 8.0 ] );
54+
x = new Complex128Array( [ 3.0, -4.0, 1.0, 2.0 ] );
55+
y = new Complex128Array( [ 1.0, -2.0, 3.0, 8.0 ] );
5656

57-
dot = zdotu( zx.length, zx, 1, 0, zy, 1, 0 );
57+
dot = zdotu( x.length, x, 1, 0, y, 1, 0 );
5858
t.strictEqual( isSameComplex128( dot, new Complex128( -18, 4 ) ), true, 'returns expected value' );
5959

6060
t.end();
6161
});
6262

6363
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `0`', function test( t ) {
6464
var dot;
65-
var zx;
66-
var zy;
65+
var x;
66+
var y;
6767

68-
zx = new Complex128Array( [ 3.0, -4.0, 1.0, 7.0 ] );
69-
zy = new Complex128Array( [ 1.0, -2.0, 3.0, -3.0 ] );
68+
x = new Complex128Array( [ 3.0, -4.0, 1.0, 7.0 ] );
69+
y = new Complex128Array( [ 1.0, -2.0, 3.0, -3.0 ] );
7070

71-
dot = zdotu( 0, zx, 1, 0, zy, 1, 0 );
71+
dot = zdotu( 0, x, 1, 0, y, 1, 0 );
7272
t.strictEqual( isSameComplex128( dot, new Complex128( 0, 0 ) ), true, 'returns expected value' );
7373

74-
dot = zdotu( -4, zx, 1, 0, zy, 1, 0 );
74+
dot = zdotu( -4, x, 1, 0, y, 1, 0 );
7575
t.strictEqual( isSameComplex128( dot, new Complex128( 0, 0 ) ), true, 'returns expected value' );
7676
t.end();
7777
});
7878

79-
tape( 'the function supports an `zx` stride', function test( t ) {
79+
tape( 'the function supports an `x` stride', function test( t ) {
8080
var dot;
81-
var zx;
82-
var zy;
81+
var x;
82+
var y;
8383

84-
zx = new Complex128Array([
84+
x = new Complex128Array([
8585
2.0, // 0
8686
-3.0, // 0
8787
-5.0,
8888
6.0,
8989
7.0, // 1
9090
6.0 // 1
9191
]);
92-
zy = new Complex128Array([
92+
y = new Complex128Array([
9393
8.0, // 0
9494
2.0, // 0
9595
-3.0, // 1
@@ -98,25 +98,25 @@ tape( 'the function supports an `zx` stride', function test( t ) {
9898
1.0
9999
]);
100100

101-
dot = zdotu( 2, zx, 2, 0, zy, 1, 0 );
101+
dot = zdotu( 2, x, 2, 0, y, 1, 0 );
102102
t.strictEqual( isSameComplex128( dot, new Complex128( -17, -17 ) ), true, 'returns expected value' );
103103
t.end();
104104
});
105105

106-
tape( 'the function supports an `zx` offset', function test( t ) {
106+
tape( 'the function supports an `x` offset', function test( t ) {
107107
var dot;
108-
var zx;
109-
var zy;
108+
var x;
109+
var y;
110110

111-
zx = new Complex128Array([
111+
x = new Complex128Array([
112112
2.0,
113113
-3.0,
114114
-5.0, // 0
115115
6.0, // 0
116116
7.0, // 1
117117
6.0 // 1
118118
]);
119-
zy = new Complex128Array([
119+
y = new Complex128Array([
120120
8.0, // 0
121121
2.0, // 0
122122
-3.0, // 1
@@ -125,25 +125,25 @@ tape( 'the function supports an `zx` offset', function test( t ) {
125125
1.0
126126
]);
127127

128-
dot = zdotu( 2, zx, 1, 1, zy, 1, 0 );
128+
dot = zdotu( 2, x, 1, 1, y, 1, 0 );
129129
t.strictEqual( isSameComplex128( dot, new Complex128( -91, 41 ) ), true, 'returns expected value' );
130130
t.end();
131131
});
132132

133-
tape( 'the function supports a `zy` stride', function test( t ) {
133+
tape( 'the function supports a `y` stride', function test( t ) {
134134
var dot;
135-
var zx;
136-
var zy;
135+
var x;
136+
var y;
137137

138-
zx = new Complex128Array([
138+
x = new Complex128Array([
139139
2.0, // 0
140140
-3.0, // 0
141141
-5.0, // 1
142142
6.0, // 1
143143
7.0,
144144
6.0
145145
]);
146-
zy = new Complex128Array([
146+
y = new Complex128Array([
147147
8.0, // 0
148148
2.0, // 0
149149
-3.0,
@@ -152,25 +152,25 @@ tape( 'the function supports a `zy` stride', function test( t ) {
152152
1.0 // 1
153153
]);
154154

155-
dot = zdotu( 2, zx, 1, 0, zy, 2, 0 );
155+
dot = zdotu( 2, x, 1, 0, y, 2, 0 );
156156
t.strictEqual( isSameComplex128( dot, new Complex128( 36, -49 ) ), true, 'returns expected value' );
157157
t.end();
158158
});
159159

160-
tape( 'the function supports a `zy` offset', function test( t ) {
160+
tape( 'the function supports a `y` offset', function test( t ) {
161161
var dot;
162-
var zx;
163-
var zy;
162+
var x;
163+
var y;
164164

165-
zx = new Complex128Array([
165+
x = new Complex128Array([
166166
1.0, // 0
167167
2.0, // 0
168168
3.0,
169169
4.0,
170170
5.0, // 1
171171
6.0 // 1
172172
]);
173-
zy = new Complex128Array([
173+
y = new Complex128Array([
174174
7.0,
175175
8.0,
176176
9.0, // 0
@@ -179,25 +179,25 @@ tape( 'the function supports a `zy` offset', function test( t ) {
179179
12.0 // 1
180180
]);
181181

182-
dot = zdotu( 2, zx, 2, 0, zy, 1, 1 );
182+
dot = zdotu( 2, x, 2, 0, y, 1, 1 );
183183
t.strictEqual( isSameComplex128( dot, new Complex128( -28, 154 ) ), true, 'returns expected value' );
184184
t.end();
185185
});
186186

187187
tape( 'the function supports negative strides', function test( t ) {
188188
var dot;
189-
var zx;
190-
var zy;
189+
var x;
190+
var y;
191191

192-
zx = new Complex128Array([
192+
x = new Complex128Array([
193193
1.0, // 1
194194
2.0, // 1
195195
3.0,
196196
4.0,
197197
5.0, // 0
198198
6.0 // 0
199199
]);
200-
zy = new Complex128Array([
200+
y = new Complex128Array([
201201
7.0,
202202
8.0,
203203
9.0, // 1
@@ -206,25 +206,25 @@ tape( 'the function supports negative strides', function test( t ) {
206206
12.0 // 0
207207
]);
208208

209-
dot = zdotu( 2, zx, -2, zx.length-1, zy, -1, 2 );
209+
dot = zdotu( 2, x, -2, x.length-1, y, -1, 2 );
210210
t.strictEqual( isSameComplex128( dot, new Complex128( -28, 154 ) ), true, 'returns expected value' );
211211
t.end();
212212
});
213213

214214
tape( 'the function supports complex access patterns', function test( t ) {
215215
var dot;
216-
var zx;
217-
var zy;
216+
var x;
217+
var y;
218218

219-
zx = new Complex128Array([
219+
x = new Complex128Array([
220220
1.0, // 0
221221
2.0, // 0
222222
3.0,
223223
4.0,
224224
5.0, // 1
225225
6.0 // 1
226226
]);
227-
zy = new Complex128Array([
227+
y = new Complex128Array([
228228
7.0, // 0
229229
8.0, // 0
230230
9.0, // 1
@@ -233,7 +233,7 @@ tape( 'the function supports complex access patterns', function test( t ) {
233233
12.0
234234
]);
235235

236-
dot = zdotu( 2, zx, 2, 0, zy, -1, zy.length-2 );
236+
dot = zdotu( 2, x, 2, 0, y, -1, y.length-2 );
237237
t.strictEqual( isSameComplex128( dot, new Complex128( -24, 110 ) ), true, 'returns expected value' );
238238
t.end();
239239
});

0 commit comments

Comments
 (0)