Skip to content

Commit a0c25a4

Browse files
committed
add: complementedMaskOp
1 parent f118659 commit a0c25a4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/GraphBLAS-sharp.Backend/Common/StandardOperations.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,9 @@ module StandardOperations =
135135
match left, right with
136136
| _, Some _ -> left
137137
| _ -> None @>
138+
139+
let complementedMaskOp<'a, 'b when 'a: struct and 'b: struct> =
140+
<@ fun (left: 'a option) (right: 'b option) ->
141+
match left, right with
142+
| _, None -> left
143+
| _ -> None @>

0 commit comments

Comments
 (0)