cg_subassign2: Subassign

Description Usage Arguments Value Note Author(s) See Also

View source: R/subset.R

Description

Calculate x[[i]] <- y.

Usage

1
cg_subassign2(x, i, y, name = NULL)

Arguments

x

a cg_node object.

i

either a cg_node or a numerical scalar that is passed on to the `[[<-` function.

y

either a cg_node or an array of a similar class as x.

name

character scalar, name of the operation (optional).

Value

cg_operator object.

Note

This operator is not differentiable with respect to i. Any attempt to differentiate this operator with respect to this argument results in an error.

Author(s)

Ron Triepels

See Also

subassign


triepels/cgraph documentation built on April 24, 2020, 12:58 a.m.