@@ -348,19 +348,6 @@ cdef class fmpq_mpoly(flint_mpoly):
348348 return res
349349 return NotImplemented
350350
351- def __iadd__ (self , other ):
352- if typecheck(other, fmpq_mpoly):
353- if (< fmpq_mpoly> self ).ctx is not (< fmpq_mpoly> other).ctx:
354- raise IncompatibleContextError(f" {(<fmpq_mpoly>self).ctx} is not {(<fmpq_mpoly>other).ctx}" )
355- fmpq_mpoly_add((< fmpq_mpoly> self ).val, (< fmpq_mpoly> self ).val, (< fmpq_mpoly> other).val, self .ctx.val)
356- return self
357- else :
358- other = any_as_fmpq(other)
359- if other is not NotImplemented :
360- fmpq_mpoly_add_fmpq((< fmpq_mpoly> self ).val, (< fmpq_mpoly> self ).val, (< fmpq> other).val, self .ctx.val)
361- return self
362- return NotImplemented
363-
364351 def __sub__ (self , other ):
365352 cdef fmpq_mpoly res
366353 if typecheck(other, fmpq_mpoly):
@@ -386,19 +373,6 @@ cdef class fmpq_mpoly(flint_mpoly):
386373 return - res
387374 return NotImplemented
388375
389- def __isub__ (self , other ):
390- if typecheck(other, fmpq_mpoly):
391- if (< fmpq_mpoly> self ).ctx is not (< fmpq_mpoly> other).ctx:
392- raise IncompatibleContextError(f" {(<fmpq_mpoly>self).ctx} is not {(<fmpq_mpoly>other).ctx}" )
393- fmpq_mpoly_sub((< fmpq_mpoly> self ).val, (< fmpq_mpoly> self ).val, (< fmpq_mpoly> other).val, self .ctx.val)
394- return self
395- else :
396- other = any_as_fmpq(other)
397- if other is not NotImplemented :
398- fmpq_mpoly_sub_fmpq((< fmpq_mpoly> self ).val, (< fmpq_mpoly> self ).val, (< fmpq> other).val, self .ctx.val)
399- return self
400- return NotImplemented
401-
402376 def __mul__ (self , other ):
403377 cdef fmpq_mpoly res
404378 if typecheck(other, fmpq_mpoly):
@@ -424,19 +398,6 @@ cdef class fmpq_mpoly(flint_mpoly):
424398 return res
425399 return NotImplemented
426400
427- def __imul__ (self , other ):
428- if typecheck(other, fmpq_mpoly):
429- if (< fmpq_mpoly> self ).ctx is not (< fmpq_mpoly> other).ctx:
430- raise IncompatibleContextError(f" {(<fmpq_mpoly>self).ctx} is not {(<fmpq_mpoly>other).ctx}" )
431- fmpq_mpoly_mul((< fmpq_mpoly> self ).val, (< fmpq_mpoly> self ).val, (< fmpq_mpoly> other).val, self .ctx.val)
432- return self
433- else :
434- other = any_as_fmpq(other)
435- if other is not NotImplemented :
436- fmpq_mpoly_scalar_mul_fmpq(self .val, (< fmpq_mpoly> self ).val, (< fmpq> other).val, self .ctx.val)
437- return self
438- return NotImplemented
439-
440401 def __pow__ (self , other , modulus ):
441402 cdef fmpq_mpoly res
442403 if modulus is not None :
0 commit comments