Skip to content

Commit da93635

Browse files
committed
ENH: add dd.sylvan.Function.count()
1 parent d9fd355 commit da93635

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dd/sylvan.pyx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,3 +1062,9 @@ cdef class Function:
10621062
sy.LACE_ME_WRAP
10631063
r = sy.sylvan_xor(self.node, other.node)
10641064
return wrap(self.bdd, r)
1065+
1066+
def count(
1067+
self:
1068+
Function
1069+
) -> _Cardinality:
1070+
return self.bdd.count(self)

0 commit comments

Comments
 (0)