mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-09-08 15:31:44 +02:00
input similar directly into mul!
This commit is contained in:
parent
bce92ef278
commit
13fa9962a9
@ -399,8 +399,7 @@ function *{T<:Number}(X::GroupRingElem{T}, Y::GroupRingElem{T}, check::Bool=true
|
|||||||
result = parent(X)(similar(X.coeffs))
|
result = parent(X)(similar(X.coeffs))
|
||||||
result = mul!(result, X, Y)
|
result = mul!(result, X, Y)
|
||||||
else
|
else
|
||||||
result = similar(X.coeffs)
|
result = mul!(similar(X.coeffs), X.coeffs, Y.coeffs, parent(X).pm)
|
||||||
result = mul!(result, X.coeffs, Y.coeffs, parent(X).pm)
|
|
||||||
result = GroupRingElem(result, parent(X))
|
result = GroupRingElem(result, parent(X))
|
||||||
end
|
end
|
||||||
return result
|
return result
|
||||||
@ -422,8 +421,7 @@ function *{T<:Number, S<:Number}(X::GroupRingElem{T}, Y::GroupRingElem{S}, check
|
|||||||
result = convert(TT, result)
|
result = convert(TT, result)
|
||||||
result = mul!(result, X, Y)
|
result = mul!(result, X, Y)
|
||||||
else
|
else
|
||||||
result = similar(X.coeffs)
|
result = convert(TT, similar(X.coeffs))
|
||||||
result = convert(TT, result)
|
|
||||||
result = mul!(result, X.coeffs, Y.coeffs, parent(X).pm)
|
result = mul!(result, X.coeffs, Y.coeffs, parent(X).pm)
|
||||||
result = GroupRingElem(result, parent(X))
|
result = GroupRingElem(result, parent(X))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user