powered by
Kroneker product of two gpu.matrix-class objects. This function mimics the 'base' function 'kronecker' to operate on gpu.matrix-class objects.
'kronecker'
# S4 method for ANY,gpu.matrix.tensorflow %x%(X,Y) # S4 method for ANY,gpu.matrix.torch %x%(X,Y) # S4 method for gpu.matrix.tensorflow,ANY %x%(X,Y) # S4 method for gpu.matrix.torch,ANY %x%(X,Y)
A gpu.matrix.
gpu.matrix
A gpu.matrix or a matrix or a numeric variable.
The function %x% internally calls the corresponding function of the library torch or tensorflow (depending on the type of input gpu.matrix-class).
%x%
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 kronecker and torch_kron.
kronecker
torch_kron
# \donttest{ if (FALSE) { a <- gpu.matrix(1:9,nrow=3,ncol=3) a %x% diag(1,3) } # }
Run the code above in your browser using DataLab