Utils
This module, part of NSPOC.jl, contains the methods that do not fit particularly well in any other category.
Tuples utilities
Some utilities to deal with tuples. In particular these methods allow to insert/swap tuple elements.
NSPOC.Utils.assign_tuple — Functionassign_tuple(lst::NTuple{N,T}, val::T, i) where {N,T}Sets element i of tuple lst to value val
NSPOC.Utils.swap_tuple — Functionswap_tuple(lst::NTuple{N,T}, i, j) where {N,T}Swaps elements i and j of the tuple lst
NSPOC.Utils.psort_tuple — Functionpsort_tuple(lst::NTuple{N,T}) where {N,T}Returns the permutation that sorts an NTuple in descending order