rmultmatmult: inner product for datasets with vector scale
Description
An rmult object is considered as a sequence of vectors. The %*%
is considered as the inner multiplication. An inner multiplication with
another vector is the scalar product. an inner multiplication with
a matrix is a matrix multiplication, where the rmult-vectors are either
considered as row or as column vector.
Arguments
x
an rmult vector or dataset of vectors
y
an rmult vector or dataset of vectors
v
a numeric vector of length gsi.getD(x)
w
a numeric vector of length gsi.getD(x)
A
a matrix
Value
an object of class "rmult" or a numeric vector containing the
result of the
corresponding inner products.
synopsis
## S3 method for class 'rmult':
\%*\%(x,y)
Details
The operators try to minic the behavior of %*% on
c()-vectors as inner product applied in parallel to all vectors of
the dataset. Thus the product of a vector with another rmult
object or unclassed vector v results in the scalar product. For
the multiplication with a matrix each vector is considered as a row or
column, whatever is more appropriate.