Skip to content

Commit

Permalink
graph/scalar: avoid overriding !=
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy committed Jul 18, 2024
1 parent 266ec12 commit 7d828b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/experimental/graph/scalar.nim
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ method cond*(c: Gvalue, x: Gvalue, y: Gvalue): Gvalue {.base.} = raiseErrorBaseM
proc `>`*(x, y: Gvalue): Gvalue = not(x < y)
proc `>=`*(x, y: Gvalue): Gvalue = x > y or equal(x,y)
proc `<=`*(x, y: Gvalue): Gvalue = x < y or equal(x,y)
proc `!=`*(x, y: Gvalue): Gvalue = not equal(x,y)
proc `xor`*(x, y: Gvalue): Gvalue = not equal(not(x), not(y)) # uses `not` to convert to 0/1

proc notsb(zb: Gvalue, z: Gvalue, i: int, dep: Gvalue): Gvalue =
Expand Down

0 comments on commit 7d828b3

Please sign in to comment.