Copyright | (c) Johannes Kropp |
---|---|
License | BSD 3-Clause |
Maintainer | Johannes Kropp <jodak932@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- cartProd :: [[Int]] -> [[Int]]
- fromIndexToMultiIndex :: [Int] -> Int -> [Int]
- fromMultiIndexToIndex :: [Int] -> [Int] -> Int
- fromShapeToStrides :: [Int] -> [Int]
- fromShapeToMultiIndices :: [Int] -> [[Int]]
- isValidIdx :: Int -> Int -> Bool
- isValidMIdx :: [Int] -> [Int] -> Bool
- isValidMIdcs :: [Int] -> [[Int]] -> Bool
Documentation
fromIndexToMultiIndex :: [Int] -> Int -> [Int] Source #
unsafe function for convert an 1d index (of the holor values) to a multiindex of the holor
fromMultiIndexToIndex Source #
unsafe function for convert multiindex of the holor to a an 1d index (of the holor values)
fromShapeToStrides :: [Int] -> [Int] Source #
calculates the holor strides from the holor shape
fromShapeToMultiIndices :: [Int] -> [[Int]] Source #
calculates all possible multiindices for a holor from its shape