Skip to content

Ensure that the size functions won't return negative numbers #52

Description

@moble

If the user accidentally asks for an $\ell=0$ component when $s=0$, for example, Ysize(ℓₘᵢₙ, ℓₘₐₓ) can be called with ℓₘᵢₙ > ℓₘₐₓ, and a negative size is returned. At best, this causes an ArgumentError: invalid GenericMemory size: too large for system address width.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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