futhark-0.21.7: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageHaskell2010

Futhark.CodeGen.ImpGen.Transpose

Description

A cache-oblivious sequential transposition for CPU execution. Generates a recursive function.

Synopsis

Documentation

mapTransposeFunction :: Name -> PrimType -> Function op Source #

We need to know the name of the function we are generating, as this function is recursive.

transposeArgs :: PrimType -> VName -> Count Bytes (TExp Int64) -> VName -> Count Bytes (TExp Int64) -> TExp Int64 -> TExp Int64 -> TExp Int64 -> [Arg] Source #

Take well-typed arguments to the transpose function and produce the actual argument list.