mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +01:00
implement Array protocol for GroupRingElem
This commit is contained in:
parent
e92a5d72e8
commit
8d22162504
@ -160,7 +160,7 @@ end
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Basic manipulation
|
||||
# Basic manipulation && Array protocol
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
@ -194,7 +194,8 @@ function setindex!(X::GroupRingElem, value, g::GroupElem)
|
||||
end
|
||||
end
|
||||
|
||||
eltype(X::GroupRingElem) = eltype(X.coeffs)
|
||||
Base.size(X::GroupRingElem) = size(X.coeffs)
|
||||
Base.linearindexing{T<:GroupRingElem}(::Type{T}) = Base.LinearFast()
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user