Skip to content

Combine with InfiniteArrays.Infinity? #25

Description

@dlfivefifty

InfiniteArrays.jl currently has several infinite types and could make sense to unify this with this package. In particular I have

  1. 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.
  2. SignedInfinity <: Integer, to support +∞ and -∞.
  3. 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:

  1. Rename Infinity.jl as Infinities.jl
  2. Move to JuliaMath
  3. Rename Infinite as Infinity (adjective -> noun)
  4. Decide whether Infinity <: Integer makes sense, or whether that should be another type called InfiniteCardinality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions