powered by
Function spray() creates a sparse array; function weyl() coerces a spray object to a Weyl object.
spray()
weyl()
spray(M,x,addrepeats=FALSE)
Return a weyl or a Boolean
An integer-valued matrix, the index of the weyl object
Numeric vector of coefficients
Boolean, specifying whether repeated rows are to be added
Robin K. S. Hankin
The function is discussed and motivated in the spray package.
(W <- spray(matrix(1:36,6,6),1:6)) weyl(W) as.weyl(15,d=3)
Run the code above in your browser using DataLab