Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/matroids/{basis,linear}_matroid.pxd: Add missing cdef method…
Browse files Browse the repository at this point in the history
… declarations
  • Loading branch information
Matthias Koeppe committed Jul 31, 2022
1 parent 1f9ee80 commit 034094c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/matroids/basis_matroid.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ cdef class BasisMatroid(BasisExchangeMatroid):
cdef _bases_invariant3_var
cdef SetSystem _bases_partition3_var

cdef bint __is_exchange_pair(self, long x, long y) except -1

cdef reset_current_basis(self)

cpdef _is_basis(self, X)
Expand Down
22 changes: 22 additions & 0 deletions src/sage/matroids/linear_matroid.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ cdef class LinearMatroid(BasisExchangeMatroid):
cdef long *_prow
cdef object _zero, _one

cdef bint __is_exchange_pair(self, long x, long y) except -1
cdef int __exchange(self, long x, long y) except -1

cpdef _forget(self)
cpdef base_ring(self)
cpdef characteristic(self)
Expand Down Expand Up @@ -68,6 +71,9 @@ cdef class BinaryMatroid(LinearMatroid):
cdef tuple _b_invariant, _b_partition
cdef BinaryMatrix _b_projection, _eq_part

cdef bint __is_exchange_pair(self, long x, long y) except -1
cdef int __exchange(self, long x, long y) except -1

cpdef base_ring(self)
cpdef characteristic(self)

Expand All @@ -76,6 +82,8 @@ cdef class BinaryMatroid(LinearMatroid):
cpdef LeanMatrix _reduced_representation(self, B=*)

cdef __fundamental_cocircuit(self, bitset_t, long x)
cdef __coclosure(self, bitset_t R, bitset_t F)
cdef __exchange_value(self, long x, long y)

cpdef _is_isomorphic(self, other, certificate=*)

Expand All @@ -99,6 +107,9 @@ cdef class TernaryMatroid(LinearMatroid):
cdef tuple _t_invariant, _t_partition
cdef TernaryMatrix _t_projection

cdef bint __is_exchange_pair(self, long x, long y) except -1
cdef int __exchange(self, long x, long y) except -1

cpdef base_ring(self)
cpdef characteristic(self)

Expand All @@ -107,6 +118,8 @@ cdef class TernaryMatroid(LinearMatroid):
cpdef LeanMatrix _reduced_representation(self, B=*)

cdef __fundamental_cocircuit(self, bitset_t, long x)
cdef __coclosure(self, bitset_t R, bitset_t F)
cdef __exchange_value(self, long x, long y)

cpdef _is_isomorphic(self, other, certificate=*)

Expand All @@ -127,6 +140,9 @@ cdef class QuaternaryMatroid(LinearMatroid):
cdef tuple _q_invariant, _q_partition
cdef QuaternaryMatrix _q_projection

cdef bint __is_exchange_pair(self, long x, long y) except -1
cdef int __exchange(self, long x, long y) except -1

cpdef base_ring(self)
cpdef characteristic(self)

Expand All @@ -135,6 +151,8 @@ cdef class QuaternaryMatroid(LinearMatroid):
cpdef LeanMatrix _reduced_representation(self, B=*)

cdef __fundamental_cocircuit(self, bitset_t, long x)
cdef __coclosure(self, bitset_t R, bitset_t F)
cdef __exchange_value(self, long x, long y)

cpdef _is_isomorphic(self, other, certificate=*)

Expand All @@ -153,6 +171,10 @@ cdef class RegularMatroid(LinearMatroid):
cdef _r_projection, _r_hypergraph
cdef _hypergraph_vertex_partition, _hypergraph_tuples

cdef bint __is_exchange_pair(self, long x, long y) except -1
cdef int __exchange(self, long x, long y) except -1
cdef __exchange_value(self, long x, long y)

cpdef base_ring(self)
cpdef characteristic(self)

Expand Down

0 comments on commit 034094c

Please sign in to comment.