spraycross {spray} | R Documentation |
Cross product for spray objects
Description
Provides a natural cross product for spray objects, useful for tensors
and k
-forms
Usage
spraycross(S, ...)
spraycross2(S1,S2)
Arguments
S , S1 , S2 , ... |
spray objects |
Details
Tensor products for sprays. This is not an algebraic product of sprays interpreted as multivariate polynomials. The function is used in the stokes package.
Function spraycross2()
is a helper function that takes exactly
two arguments. Function spraycross()
is a more general function
that takes any number of arguments.
Value
Returns a spray object
Author(s)
Robin K. S. Hankin
Examples
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)
[Package spray version 1.0-25 Index]