We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792646d commit d3a850cCopy full SHA for d3a850c
1 file changed
src/GraphBLAS-sharp.Backend/Matrices.fs
@@ -54,3 +54,17 @@ and COOMatrix<'elem when 'elem: struct> =
54
q.Post(Msg.CreateFreeMsg<_>(this.Columns))
55
q.Post(Msg.CreateFreeMsg<_>(this.Rows))
56
q.PostAndReply(Msg.MsgNotifyMe)
57
+
58
+and TupleMatrix<'elem when 'elem: struct> =
59
+ { Context: ClContext
60
+ RowIndices: ClArray<int>
61
+ ColumnIndices: ClArray<int>
62
+ Values: ClArray<'elem> }
63
64
+ interface IDeviceMemObject with
65
+ member this.Dispose() =
66
+ let q = this.Context.Provider.CommandQueue
67
+ q.Post(Msg.CreateFreeMsg<_>(this.RowIndices))
68
+ q.Post(Msg.CreateFreeMsg<_>(this.ColumnIndices))
69
+ q.Post(Msg.CreateFreeMsg<_>(this.Values))
70
+ q.PostAndReply(Msg.MsgNotifyMe)
0 commit comments