futhark-0.19.7: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
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.