File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -347,15 +347,15 @@ def test_fast_dot():
347
347
# col < row
348
348
C = np .dot (A .T , A )
349
349
C_ = fast_dot (A .T , A )
350
- assert_almost_equal (C , C_ )
350
+ assert_almost_equal (C , C_ , decimal = 5 )
351
351
352
352
C = np .dot (A .T , B )
353
353
C_ = fast_dot (A .T , B )
354
- assert_almost_equal (C , C_ )
354
+ assert_almost_equal (C , C_ , decimal = 5 )
355
355
356
356
C = np .dot (A , B .T )
357
357
C_ = fast_dot (A , B .T )
358
- assert_almost_equal (C , C_ )
358
+ assert_almost_equal (C , C_ , decimal = 5 )
359
359
360
360
# Test square matrix * rectangular use case.
361
361
A = rng .random_sample ([2 , 2 ])
@@ -365,11 +365,11 @@ def test_fast_dot():
365
365
366
366
C = np .dot (A , B )
367
367
C_ = fast_dot (A , B )
368
- assert_almost_equal (C , C_ )
368
+ assert_almost_equal (C , C_ , decimal = 5 )
369
369
370
370
C = np .dot (A .T , B )
371
371
C_ = fast_dot (A .T , B )
372
- assert_almost_equal (C , C_ )
372
+ assert_almost_equal (C , C_ , decimal = 5 )
373
373
374
374
if has_blas :
375
375
for x in [np .array ([[d ] * 10 ] * 2 ) for d in [np .inf , np .nan ]]:
You can’t perform that action at this time.
0 commit comments