@@ -11,6 +11,8 @@ open GraphBLAS.FSharp.Objects
1111open GraphBLAS.FSharp .Backend .Objects
1212open GraphBLAS.FSharp .Backend .Matrix .COO
1313open GraphBLAS.FSharp .Backend .Matrix .CSR
14+ open GraphBLAS.FSharp .Objects .Matrix
15+ open GraphBLAS.FSharp .Benchmarks .MatrixExtensions
1416
1517type Config () =
1618 inherit ManualConfig()
@@ -225,7 +227,7 @@ type EWiseAddBenchmarks4Float32COOWithoutDataTransfer() =
225227 ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations.float32Sum wgSize),
226228 float32,
227229 ( fun _ -> Utils.nextSingle ( System.Random())),
228- COOMatrix < float32 >. ToBackend
230+ Matrix.ToBackendCOO
229231 )
230232
231233 static member InputMatricesProvider =
@@ -237,7 +239,7 @@ type EWiseAddBenchmarks4Float32COOWithDataTransfer() =
237239 ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations.float32Sum wgSize),
238240 float32,
239241 ( fun _ -> Utils.nextSingle ( System.Random())),
240- COOMatrix < float32>. ToBackend ,
242+ Matrix.ToBackendCOO < float32>,
241243 M.resultToHostCOO
242244 )
243245
@@ -251,7 +253,7 @@ type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer() =
251253 ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations.boolSum wgSize),
252254 ( fun _ -> true ),
253255 ( fun _ -> true ),
254- COOMatrix < bool>. ToBackend
256+ Matrix.ToBackendCOO < bool>
255257 )
256258
257259 static member InputMatricesProvider =
@@ -264,7 +266,7 @@ type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer() =
264266 ( fun context wgSize -> CSRMatrix.elementwise context ArithmeticOperations.float32Sum wgSize),
265267 float32,
266268 ( fun _ -> Utils.nextSingle ( System.Random())),
267- CSRMatrix < float32 >. ToBackend
269+ Matrix.ToBackendCSR
268270 )
269271
270272 static member InputMatricesProvider =
@@ -277,7 +279,7 @@ type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer() =
277279 ( fun context wgSize -> CSRMatrix.elementwise context ArithmeticOperations.boolSum wgSize),
278280 ( fun _ -> true ),
279281 ( fun _ -> true ),
280- CSRMatrix < bool >. ToBackend
282+ Matrix.ToBackendCSR
281283 )
282284
283285 static member InputMatricesProvider =
@@ -291,7 +293,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer() =
291293 ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context ArithmeticOperations.boolSumAtLeastOne wgSize),
292294 ( fun _ -> true ),
293295 ( fun _ -> true ),
294- COOMatrix < bool>. ToBackend
296+ Matrix.ToBackendCOO < bool>
295297 )
296298
297299 static member InputMatricesProvider =
@@ -303,7 +305,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer() =
303305 ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context ArithmeticOperations.boolSumAtLeastOne wgSize),
304306 ( fun _ -> true ),
305307 ( fun _ -> true ),
306- CSRMatrix < bool >. ToBackend
308+ Matrix.ToBackendCSR
307309 )
308310
309311 static member InputMatricesProvider =
@@ -315,7 +317,7 @@ type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer() =
315317 ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context ArithmeticOperations.float32SumAtLeastOne wgSize),
316318 float32,
317319 ( fun _ -> Utils.nextSingle ( System.Random())),
318- COOMatrix < float32>. ToBackend
320+ Matrix.ToBackendCOO < float32>
319321 )
320322
321323 static member InputMatricesProvider =
@@ -327,7 +329,7 @@ type EWiseAddAtLeastOneBenchmarks4Float32CSRWithoutDataTransfer() =
327329 ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context ArithmeticOperations.float32SumAtLeastOne wgSize),
328330 float32,
329331 ( fun _ -> Utils.nextSingle ( System.Random())),
330- CSRMatrix < float32>. ToBackend
332+ Matrix.ToBackendCSR < float32>
331333 )
332334
333335 static member InputMatricesProvider =
0 commit comments