validate_reduction_operation: Syntactically Validate the reduction operation in the einops...

View source: R/compiler-semantic-validator.R

validate_reduction_operationR Documentation

Syntactically Validate the reduction operation in the einops expression

Description

Syntactically Validate the reduction operation in the einops expression

Usage

validate_reduction_operation(einops_ast, operation)

Arguments

einops_ast

the parsed Abstract Syntax Tree (AST) of the einops expression

operation

the reduction operation, either a string or a function

Value

the input einops_ast (invisibly) if the validation passes


einops documentation built on Sept. 9, 2025, 5:29 p.m.