This page documents the operators "*", "+", "-", "/", "^", "%%",
"=", "<", ">", ">=", "<=", "!=", "&" and "|".
These are all element-wise binary operations that can be performed on a gmatrix or gvector object.
Operators work in much that same way as in R base. The command e1 %lgspadd% e2 yields the vector
log(exp(e1)+exp(e2)) calculated in a numericaly stable way.
If one object is shorter than the other, items in the shorter object are recycled as in R base. All operations
return a GPU object (i.e. a gmatrix or gvector).
signature(e1 = "gmatrix", e2 = "gmatrix")signature(e1 = "gmatrix", e2 = "gvector")signature(e1 = "gmatrix", e2 = "logical")signature(e1 = "gmatrix", e2 = "matrix")signature(e1 = "gmatrix", e2 = "numeric")signature(e1 = "gvector", e2 = "gmatrix")signature(e1 = "gvector", e2 = "gvector")signature(e1 = "gvector", e2 = "logical")signature(e1 = "gvector", e2 = "matrix")signature(e1 = "gvector", e2 = "numeric")signature(e1 = "logical", e2 = "gmatrix")signature(e1 = "logical", e2 = "gvector")signature(e1 = "matrix", e2 = "gmatrix")signature(e1 = "matrix", e2 = "gvector")signature(e1 = "numeric", e2 = "gmatrix")signature(e1 = "numeric", e2 = "gvector")The operator %% is known to be numericaly instable compared to the R version.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.