mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-28 18:50:29 +01:00
no need for prefix to fmac!: it is not exported
This commit is contained in:
parent
e39a1c8b4d
commit
01071414f7
@ -340,7 +340,7 @@ function -(X::GroupRingElem{S}, Y::GroupRingElem{T}) where {S, T}
|
||||
end
|
||||
|
||||
@doc doc"""
|
||||
GRfmac!(result::AbstractVector{T},
|
||||
fmac!(result::AbstractVector{T},
|
||||
X::AbstractVector,
|
||||
Y::AbstractVector,
|
||||
pm::Array{Int,2}) where {T<:Number}
|
||||
@ -354,7 +354,7 @@ end
|
||||
> Use with extreme care!
|
||||
"""
|
||||
|
||||
function GRfmac!(result::AbstractVector{T},
|
||||
function fmac!(result::AbstractVector{T},
|
||||
X::AbstractVector,
|
||||
Y::AbstractVector,
|
||||
pm::Array{Int,2}) where {T<:Number}
|
||||
@ -395,7 +395,7 @@ function GRmul!(result::AbstractVector{T},
|
||||
z = zero(T)
|
||||
result .= z
|
||||
|
||||
return GRfmac!(result, X, Y, pm)
|
||||
return fmac!(result, X, Y, pm)
|
||||
end
|
||||
|
||||
@doc doc"""
|
||||
@ -463,7 +463,7 @@ function *(X::GroupRingElem{T}, Y::GroupRingElem{T}, check::Bool=true) where {T<
|
||||
result = parent(X)(similar(X.coeffs))
|
||||
result = mul!(result, X, Y)
|
||||
else
|
||||
result = RGmul!(similar(X.coeffs), X.coeffs, Y.coeffs, parent(X).pm)
|
||||
result = GRmul!(similar(X.coeffs), X.coeffs, Y.coeffs, parent(X).pm)
|
||||
result = GroupRingElem(result, parent(X))
|
||||
end
|
||||
return result
|
||||
|
@ -234,7 +234,7 @@ using SparseArrays
|
||||
|
||||
@test Z.coeffs == GroupRings.GRmul!(W.coeffs, X.coeffs, Y.coeffs, RG.pm) == W.coeffs
|
||||
@test (2*X*Y).coeffs ==
|
||||
GroupRings.GRfmac!(W.coeffs, X.coeffs, Y.coeffs, RG.pm) ==
|
||||
GroupRings.fmac!(W.coeffs, X.coeffs, Y.coeffs, RG.pm) ==
|
||||
GroupRings.mul!(2, X*Y).coeffs
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user