Skip to contents

Evaluates a symbolic array at a particular point in parameter space. Partial evaluation is not allowed, all variables/symbols need to be accounted for. The result is a numeric array.

Usage

at(x, vars)

# S3 method for class 'array'
at(x, vars)

# S3 method for class 'tensor'
at(x, vars)

Arguments

x

A symbolic array() or a tensor().

vars

A named vector with parameter-value assignments. Each named entry represents a substitution of a symbol with the given value.

Value

A numeric array() or tensor().

Examples

g_sph(3) |> at(c(ph1 = 0, ph2 = 0))
#>      [,1] [,2] [,3]
#> [1,]    1    0    0
#> [2,]    0    0    0
#> [3,]    0    0    0