subs: Substitute values into a spray object

Description Usage Arguments Note Author(s) See Also Examples

Description

Substitute values into a spray object, interpreted as a multivariate polynomial

Usage

1
subs(S, dims, x)

Arguments

S

spray object

dims

Integer or logical vector with entries corresponding to the dimensions to be substituted

x

Numeric vector of values to be substituted

Note

It is much easier if argument dims is sorted into increasing order. If not, caveat emptor!

Author(s)

Robin K. S. Hankin

See Also

process_dimensions

Examples

1
2
3
4
5
S <- spray(matrix(sample(0:3,60,replace=TRUE),nrow=12))

subs(S,c(2,5),1:2)

subs(homog(3,3),1,3)

spray documentation built on Feb. 15, 2021, 1:06 a.m.