Skip to content

Commit 2d0d9ca

Browse files
committed
reduce size, increase tolerance
1 parent 0174145 commit 2d0d9ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/intrinsics/test_intrinsics.fypp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,20 +263,20 @@ subroutine test_matmul(error)
263263

264264
#:for k, t, s in R_KINDS_TYPES
265265
block
266-
${t}$ :: x(10,20), y(20,30), z(30,10), r(10,10), r1(10,10)
266+
${t}$ :: x(10,15), y(15,20), z(20,10), r(10,10), r1(10,10)
267267
call random_number(x)
268268
call random_number(y)
269269
call random_number(z)
270270

271271
r = stdlib_matmul(x, y, z) ! the optimal ordering would be (x(yz))
272272
r1 = matmul(matmul(x, y), z) ! the opposite order to induce a difference
273273

274-
call check(error, all(abs(r-r1) <= epsilon(0._${k}$) * 300), "real, ${k}$, 3 args: error too large")
274+
call check(error, all(abs(r-r1) <= epsilon(0._${k}$) * 150), "real, ${k}$, 3 args: error too large")
275275
if (allocated(error)) return
276276
end block
277277

278278
block
279-
${t}$ :: x(10,20), y(20,30), z(30,10), w(10, 20), r(10,20), r1(10,20)
279+
${t}$ :: x(10,15), y(15,20), z(20,10), w(10, 15), r(10,15), r1(10,15)
280280
call random_number(x)
281281
call random_number(y)
282282
call random_number(z)
@@ -285,7 +285,7 @@ subroutine test_matmul(error)
285285
r = stdlib_matmul(x, y, z, w) ! the optimal order would be ((x(yz))w)
286286
r1 = matmul(matmul(x, y), matmul(z, w))
287287

288-
call check(error, all(abs(r-r1) <= epsilon(0._${k}$) * 1500), "real, ${k}$, 4 args: error too large")
288+
call check(error, all(abs(r-r1) <= epsilon(0._${k}$) * 800), "real, ${k}$, 4 args: error too large")
289289
if (allocated(error)) return
290290
end block
291291
#:endfor

0 commit comments

Comments
 (0)