vector space operations computed for multiple vectors in parallel
## Methods for class "rmult"
## x+y
## x-y
## -x
## x*r
## r*x
## x/r
an rmult vector or dataset of vectors
an rmult vector or dataset of vectors
a numeric vector of size 1 or nrow(x)
an object of class "rmult"
containing the result of the
corresponding operation on the vectors.
The operators try to mimic the parallel operation of R on vectors of real numbers on vectors of vectors represented as matrices containing the vectors as rows.
# NOT RUN {
x <- rmult(matrix( sqrt(1:12), ncol= 3 ))
x
x+x
x + rmult(1:3)
x * 1:4
1:4 * x
x / 1:4
x / 10
# }
Run the code above in your browser using DataLab