mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-09-05 14:46:44 +02:00
zeros(T::Type, X::Array) modifies X??
This commit is contained in:
parent
560cfc182a
commit
2461d54d8a
@ -254,8 +254,9 @@ end
|
||||
|
||||
function groupring_mult(X::AbstractVector, Y::AbstractVector, pm::Array{Int,2})
|
||||
T = promote_type(eltype(X), eltype(Y))
|
||||
result = zeros(T, X)
|
||||
return groupring_mult!(X,Y,pm,result)
|
||||
result = zeros(T, deepcopy(X))
|
||||
groupring_mult!(X, Y, pm, result)
|
||||
return result
|
||||
end
|
||||
|
||||
function groupring_mult{T<:Number}(X::GroupRingElem{T}, Y::GroupRingElem{T})
|
||||
|
Loading…
Reference in New Issue
Block a user