We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c6715 commit d2951d4Copy full SHA for d2951d4
src/GraphBLAS-sharp.Backend/Quotes/Arithmetic.fs
@@ -38,14 +38,13 @@ module ArithmeticOperations =
38
39
let inline private mkNumericSumAsMul zero =
40
<@ fun (x: 't option) (y: 't option) ->
41
- let mutable res = zero
+ let mutable res = None
42
43
match x, y with
44
- | Some f, Some s -> res <- f + s
+ | Some f, Some s -> res <- Some(f + s)
45
| _ -> ()
46
47
-
48
- if res = zero then None else Some res @>
+ res @>
49
50
let inline private mkNumericMul zero =
51
0 commit comments