Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Partial derivatives of scalar Futhark operations and built-in functions.
Documentation
pdBuiltin :: Name -> [PrimExp VName] -> Maybe [PrimExp VName] Source #
pdBuiltin f args i
computes the partial derivative of f
applied to args
with respect to each of its arguments. Returns
Nothing
if no such derivative is known.