easytensor-1.0.0.0: Pure, type-indexed haskell vector, matrix, and tensor library.

Safe HaskellNone
LanguageHaskell2010

Numeric.DataFrame.Internal.Array.PrimOps

Description

Internal primitive functions shared across modules

Synopsis

Documentation

loop# Source #

Arguments

:: Int#

initial value

-> Int#

step

-> Int#

final value (LESS THAN condition)

-> (Int# -> State# s -> State# s) 
-> State# s 
-> State# s 

loopWithI# Source #

Arguments

:: Int#

initial value

-> Int#

step

-> Int#

final value (LESS THAN condition)

-> (Int# -> Int# -> State# s -> State# s) 
-> State# s 
-> State# s 

Loop with given increment, plus keep the step number in the first argument of the iterated function

loop1# :: Int# -> (Int# -> State# s -> State# s) -> State# s -> State# s Source #

Do something in a loop for int i from 0 to (n-1)

loop1a# :: Int# -> (Int# -> a -> a) -> a -> a Source #

Do something in a loop for int i from 0 to (n-1)

overDim_# Source #

Arguments

:: Dims (ds :: [k]) 
-> (Idxs ds -> Int# -> State# s -> State# s)

function to map over each dimension

-> Int#

Initial offset

-> Int#

offset step

-> State# s 
-> State# s 

Same as overDim#, but with no return value

overDim_'# Source #

Arguments

:: Dims (ds :: [k]) 
-> (Idxs ds -> Int# -> State# s -> (#State# s, Int##))

function to map over each dimension

-> Int#

Initial offset

-> State# s 
-> (#State# s, Int##)