gsi.add {compositions} | R Documentation |
The given operations are performed in parallel for multiple datasets or for two single datasets, or for multiple datasets with a single dataset.
gsi.add(x,y) gsi.sub(x,y) gsi.mul(x,y) gsi.div(x,y)
x |
a vector or a matrix |
y |
a vector or a matrix |
All operations +,-,*,/ are performed on unclassed objects.
a vector or a matrix with the operated values
It is better not to use gsi.* functions directly since they are internal functions of the package
tmp1 <- matrix(1:12,ncol=3) tmp2 <- 1:3 gsi.add(tmp1,tmp2) gsi.sub(tmp1,tmp2) gsi.mul(tmp1,tmp2) gsi.div(tmp1,tmp2) gsi.add(tmp2,tmp2) gsi.sub(tmp2,tmp2) gsi.mul(tmp2,tmp2) gsi.div(tmp2,tmp2) gsi.add(tmp1,tmp1) gsi.sub(tmp1,tmp1) gsi.mul(tmp1,tmp1) gsi.div(tmp1,tmp1)