| spraycross | R Documentation |
Provides a natural cross product for spray objects, useful for tensors
and k-forms
spraycross(S, ...)
spraycross2(S1, S2)
S, S1, S2, ... |
spray objects |
Tensor products for sprays. This is not an algebraic product of
sprays interpreted as multivariate polynomials. The function is used in
the stokes package, in which vignette tensorprod()
gives a use-case.
Function spraycross2() is a helper function that takes exactly
two arguments. Function spraycross() is a more general function
that takes any number of arguments.
Returns a spray object
Robin K. S. Hankin
a <- spray(matrix(1:4,2,2), c(2,5))
b <- spray(matrix(c(10,11,12,13),2,2), c(7,11))
a
b
spraycross2(a, b)
spraycross2(b, a)
spraycross(a, b, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.