Skip to contents

Matrix multiplication binary operation for LazyTensor objects corresponding to combination of multiplication operator * and sum reduction.

Usage

# S3 method for LazyTensor
%*%(x, y)

Arguments

x, y

a LazyTensor, a ComplexLazyTensor.

Value

A matrix.

Details

If x or y is a LazyTensor, x %*% y returns the sum reduction of the product x * y.

Author

Chloe Serre-Combe, Amelie Vernay

Examples

if (FALSE) {
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
y <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, index = 'i')   # creating LazyTensor from matrix x, 
                                    # indexed by 'i'
y_j <- LazyTensor(y, index = 'j')   # creating LazyTensor from matrix y, 
                                    # indexed by 'j'
x_mult_y <- x_i %*% y_j             # FIXME
}