Skip to content

Commit 3fd2e59

Browse files
authored
Merge pull request #9 from artemgl/coo-element-wise-addition
Element-wise addition for matrices and vectors in coordinate format
2 parents e5c9ed5 + 91820fe commit 3fd2e59

4 files changed

Lines changed: 577 additions & 2 deletions

File tree

src/GraphBLAS-sharp/Abstracts.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type Matrix<'a when 'a : struct and 'a : equality>(nrow: int, ncol: int) =
1515
abstract GetNNZ: unit -> OpenCLEvaluation<int>
1616
abstract GetTuples: unit -> OpenCLEvaluation<{| Rows: int[]; Columns: int[]; Values: 'a[] |}>
1717
abstract GetMask: ?isComplemented: bool -> OpenCLEvaluation<Mask2D option>
18+
abstract ToHost: unit -> OpenCLEvaluation<Matrix<'a>>
1819

1920
abstract Extract: Mask2D option -> OpenCLEvaluation<Matrix<'a>>
2021
abstract Extract: (Mask1D option * int) -> OpenCLEvaluation<Vector<'a>>
@@ -56,6 +57,7 @@ and [<AbstractClass>] Vector<'a when 'a : struct and 'a : equality>(size: int) =
5657
abstract GetNNZ: unit -> OpenCLEvaluation<int>
5758
abstract GetTuples: unit -> OpenCLEvaluation<{| Indices: int[]; Values: 'a[] |}>
5859
abstract GetMask: ?isComplemented: bool -> OpenCLEvaluation<Mask1D option>
60+
abstract ToHost: unit -> OpenCLEvaluation<Vector<'a>>
5961

6062
abstract Extract: Mask1D option -> OpenCLEvaluation<Vector<'a>>
6163
abstract Extract: int -> OpenCLEvaluation<Scalar<'a>>

src/GraphBLAS-sharp/GraphBLAS-sharp.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<Compile Include="Monoid.fs" />
1515
<Compile Include="Semiring.fs" />
1616
<Compile Include="GlobalContext.fs" />
17+
<Compile Include="Toolbox.fs" />
1718
<Compile Include="Scalar.fs" />
1819
<Compile Include="Abstracts.fs" />
1920
<Compile Include="Implementations.fs" />

0 commit comments

Comments
 (0)