File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010- Acadia Larsen (2024): initial version.
1111"""
1212
13- __version__ = "0.0.54 "
13+ __version__ = "0.0.55 "
1414
1515from .linear_algebra import (
1616 Variable , Linear_Expression , Affine_Expression
Original file line number Diff line number Diff line change @@ -693,16 +693,18 @@ cdef class NNC_Polyhedron(object):
693693 self .thisptr[0 ].concatenate_assign(p[0 ])
694694
695695 def remove_higher_space_dims (self , new_dim ):
696- cdef dim_type d
697- d = Python_int_to_FLINT_Integer(new_dim)
698- self .thisptr[0 ].remove_higher_space_dims(d)
696+ cdef dim_type dim
697+ if isinstance (new_dim, int ):
698+ dim = new_dim
699+ self .thisptr[0 ].remove_higher_space_dims(dim)
699700
700701 def expand_space_dim (self , variable , dim_m ):
701- cdef dim_type d
702- d = Python_int_to_FLINT_Integer(dim_m)
702+ cdef dim_type dim
703+ if isinstance (dim_m, int ):
704+ dim = dim_m
703705 if isinstance (variable, Variable):
704706 var = (< Variable> variable).thisptr
705- self .thisptr[0 ].expand_space_dim(var[0 ], d )
707+ self .thisptr[0 ].expand_space_dim(var[0 ], dim )
706708
707709 def minimize (self ):
708710 self .thisptr[0 ].minimize()
You can’t perform that action at this time.
0 commit comments