clash-lib-1.2.0: CAES Language for Synchronous Hardware - As a Library

Safe HaskellNone
LanguageHaskell2010

Clash.Primitives.Sized.Vector

Synopsis

Documentation

foldFunctionPlurality :: HasCallStack => Int -> Int Source #

Calculates the number of function calls needed for an evaluation of fold, given the length of the vector given to fold.

foldTF :: TemplateFunction Source #

Type signature of function we're generating netlist for:

fold :: (a -> a -> a) -> Vec (n + 1) a -> a

The implementation promises to create a (balanced) tree structure.