View source: R/compiler-TransformRecipe.R
prepare_transformation_recipe | R Documentation |
This function does the following parts of the einops 'compilation' pipeline:
Lexing: tokenizing the input expression string
Parsing: converting the tokens into an Abstract Syntax Tree (AST)
Syntactic Analysis:
operation-based AST validation pass
Compile syntactic info for intermediate representation (IR).
IR generation: return the TransformRecipe()
object.
prepare_transformation_recipe(
expr,
func,
axes_names,
ndim,
reverse_groups = FALSE
)
a populated TransformRecipe()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.