Safe Haskell | None |
---|---|
Language | Haskell2010 |
Fast hash functions for Primary
sequences. This function maps
primary sequences to a continuous set of Ints [0 ..]
where the maximum
is dependent on the input length. This allows us to map short sequences
into contiguous memory locations. Useful for, say, energy lookup tables.
Synopsis
- newtype HashedPrimary t n = HashedPrimary {}
- mkHashedPrimary :: forall t n. (Unbox (Letter t n), Bounded (Letter t n), Enum (Letter t n)) => Primary t n -> HashedPrimary t n
- hash2primary :: forall t n. (Unbox (Letter t n), Bounded (Letter t n), Enum (Letter t n)) => HashedPrimary t n -> Primary t n
Documentation
newtype HashedPrimary t n Source #
The hash of a primary sequence.