exact division is still TODO
This commit is contained in:
parent
194cdf64eb
commit
5b923dfe4c
|
@ -121,6 +121,22 @@ function ==(A::GroupRing, B::GroupRing)
|
|||
end
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Exact Division (TODO)
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
function AbstractAlgebra.divexact_left(X::GroupRingElem, Y::GroupRingElem)
|
||||
isunit(Y) || throw(DivideError())
|
||||
return inv(Y)*X
|
||||
end
|
||||
|
||||
function AbstractAlgebra.divexact_right(X::GroupRingElem, Y::GroupRingElem)
|
||||
isunit(Y) || throw(DivideError())
|
||||
return X*inv(Y)
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# promotion, rand, isapprox
|
||||
|
|
Loading…
Reference in New Issue