kroneker {GPUmatrix}R Documentation

kroneker Products

Description

Kroneker product of two gpu.matrix-class objects. This function mimics the 'base' function 'kronecker' to operate on gpu.matrix-class objects.

Usage

## S4 method for signature 'ANY,gpu.matrix.tensorflow'
X %x% Y
## S4 method for signature 'ANY,gpu.matrix.torch'
X %x% Y
## S4 method for signature 'gpu.matrix.tensorflow,ANY'
X %x% Y
## S4 method for signature 'gpu.matrix.torch,ANY'
X %x% Y

Arguments

X

A gpu.matrix.

Y

A gpu.matrix or a matrix or a numeric variable.

Details

The function %x% internally calls the corresponding function of the library torch or tensorflow (depending on the type of input gpu.matrix-class).

If the input gpu.matrix-class object(s) are stored on the GPU, then the operations will be performed on the GPU. See gpu.matrix.

See Also

See Also kronecker and torch_kron.

Examples



## Not run: 

a <- gpu.matrix(1:9,nrow=3,ncol=3)
a %x% diag(1,3)



## End(Not run)



[Package GPUmatrix version 1.0.2 Index]