Skip to content

Commit d58a9ee

Browse files
committed
refactor: module Fold -> Reduce
1 parent d83f4b5 commit d58a9ee

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/GraphBLAS-sharp.Backend/Common/Sum.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ open GraphBLAS.FSharp.Backend.Quotes
55
open Microsoft.FSharp.Control
66
open Microsoft.FSharp.Quotations
77

8-
module Fold =
8+
module Reduce =
99
let private runGeneral (clContext: ClContext) (workGroupSize: int) scan scanToCell =
1010

1111
fun (processor: MailboxProcessor<_>) (inputArray: ClArray<'a>) ->

src/GraphBLAS-sharp.Backend/Vector/DenseVector/DenseVector.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module DenseVector =
249249
getValuesAndIndices clContext workGroupSize
250250

251251
let reduce =
252-
Fold.reduce clContext workGroupSize opAdd
252+
Reduce.reduce clContext workGroupSize opAdd
253253

254254
fun (processor: MailboxProcessor<_>) (vector: ClArray<'a option>) ->
255255

src/GraphBLAS-sharp.Backend/Vector/SparseVector/SparseVector.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,6 @@ module SparseVector =
349349
let reduce<'a when 'a: struct> (clContext: ClContext) (workGroupSize: int) (opAdd: Expr<'a -> 'a -> 'a>) =
350350

351351
let reduce =
352-
Fold.reduce clContext workGroupSize opAdd
352+
Reduce.reduce clContext workGroupSize opAdd
353353

354354
fun (processor: MailboxProcessor<_>) (vector: ClVector.Sparse<'a>) -> reduce processor vector.Values

tests/GraphBLAS-sharp.Tests/Common/Reduce.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ let makeTest
5959

6060

6161
let testFixtures config wgSize q plus plusQ zero filter name =
62-
let reduce = Fold.reduce context wgSize plusQ
62+
let reduce = Reduce.reduce context wgSize plusQ
6363

6464
makeTest q reduce plus zero filter
6565
|> testPropertyWithConfig config (sprintf "Correctness on %s" name)

tests/GraphBLAS-sharp.Tests/Common/Sum.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let makeTest (q: MailboxProcessor<_>) sum plus zero isEqual (filter: 'a [] -> 'a
4646
|> Expect.equal actualSum expectedSum
4747

4848
let testFixtures config wgSize q plus (plusQ: Expr<'a -> 'a -> 'a>) zero isEqual filter name =
49-
let sum = Fold.sum context wgSize plusQ zero
49+
let sum = Reduce.sum context wgSize plusQ zero
5050

5151
makeTest q sum plus zero isEqual filter
5252
|> testPropertyWithConfig config (sprintf "Correctness on %s" name)

0 commit comments

Comments
 (0)