1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-12-29 11:00:28 +01:00

rename mul! and fmac! to specific GRmul! and GRfmac!

This commit is contained in:
kalmarek 2019-01-02 17:07:17 +01:00
parent ecc44a8da6
commit e6555551c1

View File

@ -341,7 +341,7 @@ function -(X::GroupRingElem{S}, Y::GroupRingElem{T}) where {S, T}
end end
doc""" doc"""
fmac!(result::AbstractVector{T}, GRfmac!(result::AbstractVector{T},
X::AbstractVector, X::AbstractVector,
Y::AbstractVector, Y::AbstractVector,
pm::Array{Int,2}) where {T<:Number} pm::Array{Int,2}) where {T<:Number}
@ -355,7 +355,7 @@ doc"""
> Use with extreme care! > Use with extreme care!
""" """
function fmac!(result::AbstractVector{T}, function GRfmac!(result::AbstractVector{T},
X::AbstractVector, X::AbstractVector,
Y::AbstractVector, Y::AbstractVector,
pm::Array{Int,2}) where {T<:Number} pm::Array{Int,2}) where {T<:Number}
@ -376,7 +376,7 @@ function fmac!(result::AbstractVector{T},
end end
doc""" doc"""
mul!(result::AbstractVector{T}, GRmul!(result::AbstractVector{T},
X::AbstractVector, X::AbstractVector,
Y::AbstractVector, Y::AbstractVector,
pm::Array{Int,2}) where {T<:Number} pm::Array{Int,2}) where {T<:Number}
@ -389,14 +389,14 @@ doc"""
> in `pm`. > in `pm`.
> Use with extreme care! > Use with extreme care!
""" """
function mul!(result::AbstractVector{T}, function GRmul!(result::AbstractVector{T},
X::AbstractVector, X::AbstractVector,
Y::AbstractVector, Y::AbstractVector,
pm::Array{Int,2}) where {T<:Number} pm::Array{Int,2}) where {T<:Number}
z = zero(T) z = zero(T)
result .= z result .= z
return fmac!(result, X, Y, pm) return GRfmac!(result, X, Y, pm)
end end
doc""" doc"""
@ -464,7 +464,7 @@ function *(X::GroupRingElem{T}, Y::GroupRingElem{T}, check::Bool=true) where {T<
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 = mul!(similar(X.coeffs), X.coeffs, Y.coeffs, parent(X).pm) result = RGmul!(similar(X.coeffs), X.coeffs, Y.coeffs, parent(X).pm)
result = GroupRingElem(result, parent(X)) result = GroupRingElem(result, parent(X))
end end
return result return result
@ -484,7 +484,7 @@ function *(X::GroupRingElem{T}, Y::GroupRingElem{S}, check::Bool=true) where {T<
result = mul!(result, X, Y) result = mul!(result, X, Y)
else else
result = convert(TT, similar(X.coeffs)) result = convert(TT, similar(X.coeffs))
result = mul!(result, X.coeffs, Y.coeffs, parent(X).pm) result = RGmul!(result, X.coeffs, Y.coeffs, parent(X).pm)
result = GroupRingElem(result, parent(X)) result = GroupRingElem(result, parent(X))
end end
return result return result