Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TensortProps = TensortProps {
- bytesize :: Int
- subAlgorithm :: SortAlg
- type Bit = Int
- type Byte = [Bit]
- type Address = Int
- type TopBit = Bit
- type Record = (Address, TopBit)
- type Register = [Record]
- data Sortable
- fromSortBit :: Sortable -> [Bit]
- fromSortRec :: Sortable -> [Record]
- type SortAlg = Sortable -> Sortable
- type SupersortProps = (SortAlg, SortAlg, SortAlg, SupersortStrat)
- type SupersortStrat = (Sortable, Sortable, Sortable) -> Sortable
- data Memory
- type Tensor = (Register, Memory)
- type TensorStack = Tensor
- fromJust :: Maybe a -> a
Documentation
data TensortProps Source #
A Byte is a list of Bits standardized to a fixed maximum length (Bytesize)
The length should be set either in or upstream of any function that uses Bytes
A TopBit contains a copy of the last (i.e. highest) Bit in a Byte or Tensor
type Record = (Address, TopBit) Source #
A Record is an element in a Tensor's Register containing an Address pointer and a TopBit value
A Record's Address is an index number pointing to a Byte or Tensor in the Tensor's Memory
A Record's TopBit is a copy of the last (i.e. highest) Bit in the Byte or Tensor that the Record references
type Register = [Record] Source #
A Register is a list of Records allowing for easy access to data in a Tensor's Memory
We use a Sortable type sort between Bits and Records
In the future this may be expanded to include other data types and allow for sorting other types of besides Ints.
fromSortBit :: Sortable -> [Bit] Source #
fromSortRec :: Sortable -> [Record] Source #
type SupersortProps = (SortAlg, SortAlg, SortAlg, SupersortStrat) Source #
A Memory contains the data to be sorted, either in the form of Bytes or Tensors.
type Tensor = (Register, Memory) Source #
A Tensor contains data to be sorted in a structure allowing for easy access. It consists of a Register and its Memory.
The Memory is a list of the Bytes or other Tensors that this Tensor contains.
The Register is a list of Records referencing the top Bits in Memory.
type TensorStack = Tensor Source #
A TensorStack is a top-level Tensor. In the final stages of Tensort, the number of TensorStacks will equal the bytesize, but before that time there are expected to be many more TensorStacks.