InfiniteArrays.jl currently has several infinite types and could make sense to unify this with this package. In particular I have
Infinity <: Integer. This is because it represents cardinality, and so need it to be an Integer to work with the array interfaces. Note I believe in interpreting Integer as an an interface, not a mathematical definition, so since Infinity conforms to the Integer interface this is a valid definition.
SignedInfinity <: Integer, to support +∞ and -∞.
OrientedInfinity{T<:Real} <: Number. This is for infinities in the complex plane (unfortunately there's no AbstractComplex to subtype)
What do you think? It will take some thought, in particular I would propose at least:
- Rename Infinity.jl as Infinities.jl
- Move to JuliaMath
- Rename
Infinite as Infinity (adjective -> noun)
- Decide whether
Infinity <: Integer makes sense, or whether that should be another type called InfiniteCardinality.
InfiniteArrays.jl currently has several infinite types and could make sense to unify this with this package. In particular I have
Infinity <: Integer. This is because it represents cardinality, and so need it to be anIntegerto work with the array interfaces. Note I believe in interpretingIntegeras an an interface, not a mathematical definition, so sinceInfinityconforms to theIntegerinterface this is a valid definition.SignedInfinity <: Integer, to support+∞and-∞.OrientedInfinity{T<:Real} <: Number. This is for infinities in the complex plane (unfortunately there's noAbstractComplexto subtype)What do you think? It will take some thought, in particular I would propose at least:
InfiniteasInfinity(adjective -> noun)Infinity <: Integermakes sense, or whether that should be another type calledInfiniteCardinality.