View source: R/RcppSimpleTensor.R
The function interprets the tensor expression, generates C++ code for it, compiles the code, links the compiled code, and returns a a R function that wraps the C++ tensor
1 | tensorFunction(expr, name = NULL, cache = TRUE, verbose = FALSE)
|
expr |
tensor expression |
name |
name to be associated with the tensor. The name is used to store the binary file and the link to the object in a global list. Note that conflicts can happen if several packages use identical names. If no name is provided a hash from the expression is computed. |
cache |
whether you want the function to look for a cached version of the tensor. RcppSimpleTensor will look in the hidden .tensor folder in the working directory for a previously compiled binray for that particular tensor. |
verbose |
prints information about the compilation if any as well as the generated source code |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.