We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f12e605 commit 9de7da5Copy full SHA for 9de7da5
1 file changed
src/GraphBLAS-sharp.Backend/Objects/ArraysExtentions.fs
@@ -6,7 +6,8 @@ module ArraysExtensions =
6
7
type ClArray<'a> with
8
member this.Dispose(q: MailboxProcessor<Msg>) =
9
- q.PostAndReply(fun _ -> Msg.CreateFreeMsg this)
+ q.Post(Msg.CreateFreeMsg this)
10
+ q.PostAndReply(Msg.MsgNotifyMe)
11
12
member this.ToHost(q: MailboxProcessor<Msg>) =
13
let dst = Array.zeroCreate this.Length
@@ -25,6 +26,6 @@ module ArraysExtensions =
25
26
27
member this.ToDevice(context: ClContext) = context.CreateClArray this
28
- static member FromArray(array: 'a [], isZero: 'a -> bool) =
29
- array
30
- |> Array.map (fun v -> if isZero v then None else Some v)
+ let FromArray (array: 'a [], isZero: 'a -> bool) =
+ array
31
+ |> Array.map (fun v -> if isZero v then None else Some v)
0 commit comments