Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pattern
LUA_RIDX_GLOBALS :: Integerlua Lua The registry index that holds the global environment.
pattern
LUA_OPIDIV :: ArithOPCodelua Lua.Constants Performs floor division (//)
pattern
LUA_RIDX_GLOBALS :: Integerlua Lua.Constants The registry index that holds the global environment.
-
massiv Data.Massiv.Array Same as compute, but with Stride. O(n div k) - Where n is number of elements in the source array and k is number of elements in the stride.
-
massiv Data.Massiv.Array Same as computeWithStride, but with ability to specify resulting array representation.
-
massiv Data.Massiv.Array No documentation available.
-
massiv Data.Massiv.Array Replicate each element of the array by a factor in stride along each dimension and surround each such group with a box of supplied grid value. It will essentially zoom up an array and create a grid around each element from the original array. Very useful for zooming up images to inspect individual pixels.
Example
>>> import Data.Massiv.Array as A >>> arr = resize' (Sz2 3 2) (Ix1 1 ... 6) >>> arr Array D Seq (Sz (3 :. 2)) [ [ 1, 2 ] , [ 3, 4 ] , [ 5, 6 ] ] >>> zoomWithGrid 0 (Stride (2 :. 3)) arr Array DL Seq (Sz (10 :. 9)) [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ] , [ 0, 1, 1, 1, 0, 2, 2, 2, 0 ] , [ 0, 1, 1, 1, 0, 2, 2, 2, 0 ] , [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ] , [ 0, 3, 3, 3, 0, 4, 4, 4, 0 ] , [ 0, 3, 3, 3, 0, 4, 4, 4, 0 ] , [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ] , [ 0, 5, 5, 5, 0, 6, 6, 6, 0 ] , [ 0, 5, 5, 5, 0, 6, 6, 6, 0 ] , [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
fromStrideLoad :: StrideLoad r ix e => Stride ix -> Array r ix e -> Array DL ix emassiv Data.Massiv.Array.Delayed Convert an array that can be loaded with stride into DL representation.
-
massiv Data.Massiv.Array.Numeric.Integral Similar to fromFunction, but will create an array from a function with sample points in the middle of cells.
>>> fromFunctionMidpoint Seq (\ scale (i :. j) -> scale i + scale j :: Double) (-2) 1 (Sz 4) 2 Array D Seq (Sz (8 :. 8)) [ [ -3.5, -3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.0 ] , [ -3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.0, 0.5 ] , [ -2.5, -2.0, -1.5, -1.0, -0.5, 0.0, 0.5, 1.0 ] , [ -2.0, -1.5, -1.0, -0.5, 0.0, 0.5, 1.0, 1.5 ] , [ -1.5, -1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 2.0 ] , [ -1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 2.0, 2.5 ] , [ -0.5, 0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0 ] , [ 0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5 ] ]
-
massiv Data.Massiv.Array.Numeric.Integral Use midpoint rule to approximate an integral.