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

stylistic changes to mul!

This commit is contained in:
kalmarek 2019-03-15 08:05:14 +01:00
parent bcb4f3ed30
commit d044cc693b
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -375,10 +375,8 @@ function fmac!(result::AbstractVector{T},
end
@doc doc"""
GRmul!(result::AbstractVector{T},
X::AbstractVector,
Y::AbstractVector,
pm::Array{Int,2}) where {T<:Number}
GRmul!(result::AbstractVector{T}, X::AbstractVector, Y::AbstractVector,
pm::Matrix{<:Integer}) where {T<:Number}
> The most specialised multiplication for `X` and `Y` (intended for `coeffs` of
> `GroupRingElems`), using multiplication table `pm`.
> Notes:
@ -391,7 +389,7 @@ end
function GRmul!(result::AbstractVector{T},
X::AbstractVector,
Y::AbstractVector,
pm::Array{Int,2}) where {T<:Number}
pm::AbstractMatrix{<:Integer}) where {T<:Number}
z = zero(T)
result .= z
@ -399,9 +397,7 @@ function GRmul!(result::AbstractVector{T},
end
@doc doc"""
mul!{T}(result::GroupRingElem{T},
X::GroupRingElem,
Y::GroupRingElem)
mul!(result::GroupRingElem, X::GroupRingElem, Y::GroupRingElem)
> In-place multiplication for `GroupRingElem`s `X` and `Y`.
> `mul!` will make use the initialised entries of `pm` attribute of
> `parent(X)::GroupRing` (if available), and will compute and store in `pm` the