spray (version 1.0)

spray_cpp:

Description

Low-level functions that call C++ source code, as detailed in the automatically generated RcppExports.R file.

Usage

spray_maker(M, d)
spray_add(M1, d1, M2, d2)
spray_mult(M1, d1, M2, d2)
spray_crush(M, d)
spray_overwrite(M1, d1, M2, d2)
spray_accessor(M, d, Mindex)
spray_setter(M1, d1, M2, d2)
spray_equality(M1, d1, M2, d2)
spray_asum_include(M,d,n)
spray_asum_exclude(M,d,n)
spray_deriv(M,d,n)

Arguments

M,M1,M2,Mindex
Integer valued matrices with rows corresponding to array indices
d,d1,d2
Vector of values corresponding to nonzero array entries
n
Integer vector corresponding to dimensions to sum over

Value

These functions return a two-element list which is coerced to an object of class spray by function spraymaker().

See Also

spraymaker,spray