Skip to content

Commit 106e52a

Browse files
committed
refactor: type paremeters
1 parent a978baf commit 106e52a

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/GraphBLAS-sharp.Backend/Algorithms/BFS.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module BFS =
1515
let singleSource
1616
(clContext: ClContext)
1717
(add: Expr<int option -> int option -> int option>)
18-
(mul: Expr<'a option -> 'b option -> int option>)
18+
(mul: Expr<'a option -> int option -> int option>)
1919
workGroupSize
2020
=
2121

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module SpMV =
1414
workGroupSize
1515
=
1616

17-
let localMemorySize = clContext.ClDevice.LocalMemSize / 1<Byte>
17+
let localMemorySize =
18+
clContext.ClDevice.LocalMemSize / 1<Byte>
1819

1920
let localPointersArraySize = workGroupSize + 1
2021

tests/GraphBLAS-sharp.Tests/Helpers.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ module Utils =
706706
abs (x - y) < Accuracy.medium.absolute
707707
|| x.Equals y
708708

709-
let vectorToDenseVector = function
709+
let vectorToDenseVector =
710+
function
710711
| Vector.Dense vector -> vector
711712
| _ -> failwith "Vector format must be Dense."
712713

tests/GraphBLAS-sharp.Tests/Matrix/Map2.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let checkResult isEqual op zero (baseMtx1: 'a [,]) (baseMtx2: 'a [,]) (actual: M
5050
let correctnessGenericTest
5151
zero
5252
op
53-
(addFun: MailboxProcessor<_> -> AllocationFlag -> ClMatrix<'a> -> ClMatrix<'b> -> ClMatrix<'c>)
53+
(addFun: MailboxProcessor<_> -> AllocationFlag -> ClMatrix<'a> -> ClMatrix<'a> -> ClMatrix<'c>)
5454
toCOOFun
5555
(isEqual: 'a -> 'a -> bool)
5656
q

tests/GraphBLAS-sharp.Tests/QuickGraph/CreateGraph.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ open QuikGraph
44

55
module CreateGraph =
66
let directedFromArray2D (matrix: 'a [,]) zero =
7-
let graph = AdjacencyGraph<'a, Edge<'a>>()
7+
let graph = AdjacencyGraph<int, Edge<int>>()
88

99
for outVertex in 0 .. Array2D.length1 matrix - 1 do
1010
for inVertex in 0 .. Array2D.length2 matrix - 1 do
1111
if matrix.[outVertex, inVertex] <> zero then
12-
graph.AddVerticesAndEdge(new Edge<'a>(outVertex, inVertex))
12+
graph.AddVerticesAndEdge(Edge<int>(outVertex, inVertex))
1313
|> ignore
1414

1515
graph
@@ -19,7 +19,7 @@ module CreateGraph =
1919
Array2D.mapi
2020
(fun r c v ->
2121
if v <> zero then
22-
Some(Edge<'a>(r, c))
22+
Some(Edge<int>(r, c))
2323
else
2424
None)
2525
matrix

0 commit comments

Comments
 (0)