mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +01:00
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
|
||||||
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
|
# promotion, rand, isapprox
|
||||||
|
Loading…
Reference in New Issue
Block a user