Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
_step :: Lexer (l :: Type -> Type) s t i -> TokenLexer l s t iyi-language Yi.Lexer.Alex No documentation available.
ghciStepIO :: GHCiSandboxIO m => m a -> IO aghc-internal GHC.Internal.GHCi No documentation available.
pattern
LUA_GCSETSTEPMUL :: GCCodelua Lua Sets data as the new value for the step multiplier of the collector (see §2.5) and returns the previous value of the step multiplier.
-
lua Lua Performs an incremental step of garbage collection.
pattern
LUA_GCSETSTEPMUL :: GCCodelua Lua.Constants Sets data as the new value for the step multiplier of the collector (see §2.5) and returns the previous value of the step multiplier.
-
lua Lua.Constants Performs an incremental step of garbage collection.
enumFromStepN :: Num e => Comp -> e -> e -> Sz1 -> Vector D emassiv Data.Massiv.Array Enumerate from a starting number x exactly n times with a custom step value dx. Unlike senumFromStepN, there is no dependency on neigboring elements therefore enumFromStepN is parallelizable. Related: senumFromN, senumFromStepN, enumFromN, rangeSize, rangeStepSize, range, rangeStepM
Examples
>>> import Data.Massiv.Array >>> enumFromStepN Seq 1 (0.1 :: Double) 5 Array D Seq (Sz1 5) [ 1.0, 1.1, 1.2, 1.3, 1.4 ] >>> enumFromStepN Seq (-pi :: Float) (pi/4) 9 Array D Seq (Sz1 9) [ -3.1415927, -2.3561945, -1.5707964, -0.78539824, 0.0, 0.78539824, 1.5707963, 2.3561947, 3.1415927 ]
Similar:- Prelude.enumFrom Similar to take n [x, x + dx ..], except that enumFromStepN is parallelizable and it only works for Num and not for Enum elements. Floating point value will be slightly different as well.
- Data.Vector.Generic.enumFromStepN Similar in the outcome, but very different in the way it works.
rangeStep' :: (HasCallStack, Index ix) => Comp -> ix -> ix -> ix -> Array D ix ixmassiv Data.Massiv.Array Same as rangeStepM, but will throw an error whenever step contains zeros.
Example
>>> import Data.Massiv.Array >>> rangeStep' Seq (Ix1 1) 2 6 Array D Seq (Sz1 3) [ 1, 3, 5 ]
rangeStepInclusive' :: (HasCallStack, Index ix) => Comp -> ix -> ix -> ix -> Array D ix ixmassiv Data.Massiv.Array Just like range, except the finish index is included.
rangeStepInclusiveM :: (MonadThrow m, Index ix) => Comp -> ix -> ix -> ix -> m (Array D ix ix)massiv Data.Massiv.Array Just like rangeStepM, except the finish index is included.