You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was using this library for my project, and found out that divide operation is not supported in this library.
I thought it doesn't make sense since Element_div method is clearly defined in pbc.c.
So I double checked the source code over and over, and found this.
In here, the function position is shifted- so Element_div is actually pointing nb_inplace_floor_divide (ifloordiv), not nb_true_divide.
I think the 0 in line 1338 was supposed to be a blank space between nb_inside_or and nb_floor_divide.
After I erased the 0 in line 1338 and installed the library once again, the divide operation works.
Hope this helps if you were using this library and have to use divide operation.
The text was updated successfully, but these errors were encountered:
Hi, I was using this library for my project, and found out that divide operation is not supported in this library.
I thought it doesn't make sense since Element_div method is clearly defined in pbc.c.
So I double checked the source code over and over, and found this.
pypbc/pypbc.c
Lines 1338 to 1341 in c518d6f
In here, the function position is shifted- so Element_div is actually pointing nb_inplace_floor_divide (ifloordiv), not nb_true_divide.
I think the 0 in line 1338 was supposed to be a blank space between nb_inside_or and nb_floor_divide.
After I erased the 0 in line 1338 and installed the library once again, the divide operation works.
Hope this helps if you were using this library and have to use divide operation.
The text was updated successfully, but these errors were encountered: