File tree 1 file changed +4
-3
lines changed
tests/CSRMultiplication.Tests
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ open OpenCL.Net
9
9
open Brahma.OpenCL
10
10
open SparseMatrixMultiplication
11
11
12
- [<Properties( Verbose= true , MaxTest= 100 , EndSize= 16 ) >]
12
+ [<Properties( Verbose= true , MaxTest= 100 , EndSize= 900 ) >]
13
13
module SparseMatrixMultiplicationTests =
14
+
14
15
type MatrixMultiplicationPair =
15
16
static member FloatSparseMatricesPair () =
16
17
fun size ->
@@ -90,10 +91,10 @@ module SparseMatrixMultiplicationTests =
90
91
91
92
let check < 'a when 'a :> System.Collections.IEnumerable > ( result : 'a ) ( expected : 'a ) =
92
93
func result expected
93
- |> Seq.forall ( fun diff -> diff < System.Double.Epsilon )
94
+ |> Seq.forall ( fun diff -> diff < 1e-8 )
94
95
95
96
let getLabel < 'a when 'a :> System.Collections.IEnumerable > ( result : 'a ) ( expected : 'a ) =
96
- sprintf " \n Total diff: %A \n Result:\n %A \n Expected:\n %A \n "
97
+ sprintf " \n Total diff:\n %A \n Result:\n %A \n Expected:\n %A \n "
97
98
( func result expected |> Seq.sum)
98
99
result
99
100
expected
You can’t perform that action at this time.
0 commit comments