Skip to content

Commit

Permalink
mkNumericSumAsMul allow max length paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar committed Oct 14, 2023
1 parent 53c6715 commit d2951d4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/GraphBLAS-sharp.Backend/Quotes/Arithmetic.fs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ module ArithmeticOperations =

let inline private mkNumericSumAsMul zero =
<@ fun (x: 't option) (y: 't option) ->
let mutable res = zero
let mutable res = None

match x, y with
| Some f, Some s -> res <- f + s
| Some f, Some s -> res <- Some(f + s)
| _ -> ()


if res = zero then None else Some res @>
res @>

let inline private mkNumericMul zero =
<@ fun (x: 't option) (y: 't option) ->
Expand Down

0 comments on commit d2951d4

Please sign in to comment.