Description Usage Arguments Details Value Author(s) References Examples
These four functions are created when
RcppArmadillo.package.skeleton()
is invoked to create a
skeleton packages.
1 2 3 4 |
x |
a numeric vector |
These are example functions which should be largely self-explanatory.
rcpparmabasic_test()
does not return a value, but displays a
message to the console.
rcpparmabasic_outerproduct()
returns a numeric matrix computed as the
outer (vector) product of x
.
rcpparmabasic_innerproduct()
returns a double computer as the inner
(vector) product of x
.
rcpparmabasic_bothproducts()
returns a list with both the outer and
inner products.
Lianfa Li
See the documentation for Armadillo, and RcppArmadillo, for more details.
1 2 3 | x <- sqrt(1:4)
rcpparmabasic_innerproduct(x)
rcpparmabasic_outerproduct(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.