Skip to content

Commit 78eaf99

Browse files
authored
chore: minor clean-up
Signed-off-by: Shabareesh Shetty <[email protected]>
1 parent 60948ab commit 78eaf99

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

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

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ tape( 'the function supports an `x` stride', function test( t ) {
9595
-4,
9696
-7,
9797
-1, // 1
98-
-9, // 1
98+
-9, // 1
9999
2,
100100
-8
101101
]);
@@ -115,39 +115,6 @@ tape( 'the function supports an `x` stride', function test( t ) {
115115
t.end();
116116
});
117117

118-
tape( 'the function supports complex access patterns', function test( t ) {
119-
var expected;
120-
var dot;
121-
var x;
122-
var y;
123-
124-
x = new Complex128Array([
125-
7, // 0
126-
-8, // 0
127-
-4,
128-
-7,
129-
-1, // 1
130-
-9, // 1
131-
2,
132-
-8
133-
]);
134-
y = new Complex128Array([
135-
6, // 1
136-
-6, // 1
137-
-9, // 0
138-
5, // 0
139-
7,
140-
-6,
141-
1,
142-
-5
143-
]);
144-
expected = new Complex128( -55, 23 );
145-
146-
dot = zdotc( 2, x, 2, 0, y, -1, 1 );
147-
t.deepEqual( dot, expected, 'returns expected value' );
148-
t.end();
149-
});
150-
151118
tape( 'the function supports an `y` stride', function test( t ) {
152119
var expected;
153120
var dot;
@@ -213,3 +180,36 @@ tape( 'the function supports negative strides', function test( t ) {
213180
t.deepEqual( dot, expected, 'returns expected value' );
214181
t.end();
215182
});
183+
184+
tape( 'the function supports complex access patterns', function test( t ) {
185+
var expected;
186+
var dot;
187+
var x;
188+
var y;
189+
190+
x = new Complex128Array([
191+
7, // 0
192+
-8, // 0
193+
-4,
194+
-7,
195+
-1, // 1
196+
-9, // 1
197+
2,
198+
-8
199+
]);
200+
y = new Complex128Array([
201+
6, // 1
202+
-6, // 1
203+
-9, // 0
204+
5, // 0
205+
7,
206+
-6,
207+
1,
208+
-5
209+
]);
210+
expected = new Complex128( -55, 23 );
211+
212+
dot = zdotc( 2, x, 2, 0, y, -1, 1 );
213+
t.deepEqual( dot, expected, 'returns expected value' );
214+
t.end();
215+
});

0 commit comments

Comments
 (0)