Skip to content

Commit 6418bfd

Browse files
committed
Rename matrices types
1 parent 639f0cb commit 6418bfd

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/GraphBLAS-sharp/Backend/MatrixCOO/EWiseAdd.fs renamed to src/GraphBLAS-sharp/Backend/COOMatrix/EWiseAdd.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace GraphBLAS.FSharp.Backend.MatrixCOO
1+
namespace GraphBLAS.FSharp.Backend.COOMatrix
22

33
open Brahma.OpenCL
44
open Brahma.FSharp.OpenCL.WorkflowBuilder.Basic

src/GraphBLAS-sharp/GraphBLAS-sharp.fsproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<Compile Include="Objects/Masks.fs" />
2020
<Compile Include="Backend/Common/Utils.fs" />
2121
<Compile Include="Backend/Common/Scan.fs" />
22-
<Compile Include="Backend/MatrixCOO/EWiseAdd.fs" />
23-
<Compile Include="Methods/MatrixMethods.fs" />
24-
<Compile Include="Methods/VectorMethods.fs" />
22+
<Compile Include="Backend/COOMatrix/EWiseAdd.fs" />
23+
<Compile Include="Methods/Matrix.fs" />
24+
<Compile Include="Methods/Vector.fs" />
2525
<Compile Include="Predefined/Monoids/Any.fs" />
2626
<Compile Include="Predefined/Monoids/Add.fs" />
2727
<Compile Include="Predefined/Monoids/Min.fs" />

src/GraphBLAS-sharp/Methods/MatrixMethods.fs renamed to src/GraphBLAS-sharp/Methods/Matrix.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ module Matrix =
5353
let eWiseAdd (leftMatrix: Matrix<'a>) (rightMatrix: Matrix<'a>) (mask: Mask2D option) (semiring: ISemiring<'a>) =
5454
let operationResult =
5555
match leftMatrix, rightMatrix with
56-
| COOMatrix left, COOMatrix right ->
56+
| MatrixCOO left, MatrixCOO right ->
5757
opencl {
58-
let! result = MatrixCOO.EWiseAdd.run left right mask semiring
59-
return COOMatrix(result)
58+
let! result = COOMatrix.EWiseAdd.run left right mask semiring
59+
return MatrixCOO result
6060
}
6161
| _ -> failwith "Not Implemented"
6262

File renamed without changes.

src/GraphBLAS-sharp/Objects/Matrix.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
namespace GraphBLAS.FSharp
22

33
type Matrix<'a> =
4-
| CSRMatrix of CSRMatrix<'a>
5-
| COOMatrix of COOMatrix<'a>
4+
| MatrixCSR of CSRMatrix<'a>
5+
| MatrixCOO of COOMatrix<'a>
66

77
and CSRMatrix<'a> =
88
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
namespace GraphBLAS.FSharp
22

33
type Vector<'a> =
4-
| COOVector
4+
| VectorCOO

0 commit comments

Comments
 (0)