powered by
Substitute values into a spray object, interpreted as a multivariate polynomial
subs(S, dims, x, drop=TRUE)
spray object
Integer or logical vector with entries corresponding to the dimensions to be substituted
Numeric vector of values to be substituted
Boolean, with default TRUE meaning to return the drop() of the result, and FALSE meaning to return a spray object consistently
TRUE
drop()
FALSE
spray
Robin K. S. Hankin
process_dimensions
(S <- spray(matrix(sample(0:3,60,replace=TRUE),nrow=12))) subs(S,c(2,5),1:2) P <- homog(3,3) subs(P,1,2)
Run the code above in your browser using DataLab