Learn R Programming

GPUmatrix (version 1.0.2)

aperm: Array Transposition

Description

t returns the transpose of a gpu.matrix-class object.

Usage

# S4 method for gpu.matrix.tensorflow
t(x)
# S4 method for gpu.matrix.torch
t(x)

Value

It returns a transposed version of a. The output is also a gpu.matrix class object.

Arguments

x

a gpu.matrix to be transposed.

See Also

For more information: t.

Examples

Run this code

# \donttest{
if (FALSE) {

  a <- gpu.matrix(1:9,nrow=3,ncol=3)
  t(a) #transpose of a.

}
# }

Run the code above in your browser using DataLab