Graph500-0.4.0: Graph500 benchmark-related definitions and data set generator.

Safe HaskellSafe-Inferred

G500.Index

Description

Definition for the type of indices.

I think index type can change over time, so I made that little file with type definition and class that allows one's code to work with different index types.

On the second thought it looks like overengineering. Let it be.

Synopsis

Documentation

type Index = Int64Source

Big enough for Graph500 benchmark purposes.

class Bits index => RandomIndex index whereSource

Methods

randomIndex :: RandomGen g => index -> g -> (index, g)Source

Generate random index. Accepts max value and generator. Returns random index and updated generator. Max value should be power of 2 (valid for Graph500 generator).

Instances