DimensionalHash-0.1.5.2: An n-dimensional hash using Morton numbers.

Portability
StabilityExperimental
MaintainerHamrouni Ghassen <ghamrouni@iptechinside.com>

Data.DimensionalHash

Description

 

Documentation

class (Bits a, Integral a) => MortonNumber a whereSource

Methods

dimensionalHash :: Bits a => [a] -> aSource

Recursively compute the hash.

maxBitSize :: Bits a => [a] -> IntSource

Compute max size (in bit) for an element of the list.

maxSize :: Bits a => [a] -> IntSource

Compute maximum size for an element of the list.

isHashable :: Bits a => [a] -> BoolSource

Returns true if the list is hashable A list is hashable IIF for every element x : x > (maxSize list)