concatenate_gpu.matrix {GPUmatrix} | R Documentation |
concatenate_gpu.matrix
Description
Mimics the 'base' function 'c'
to operate on gpu.matrix
objects: function which "combines its arguments to form a vector. All arguments are coerced to a common type which is the type of the returned value."
In most of the cases, the returned object is of type 'numeric'.
Usage
## S4 method for signature 'gpu.matrix.tensorflow'
c(x,...,recursive)
## S4 method for signature 'gpu.matrix.torch'
c(x,...,recursive)
## S4 method for signature 'numMatrixLike'
c(x,...,recursive)
Arguments
x |
A |
... |
objects to be concatenated. |
recursive |
The same as |
Value
It will return a vector of type 'numeric' with the combined values.
See Also
See also: c
.
Examples
## Not run:
#add new value
a <- gpu.matrix(1:5,nrow=1,ncol=5)
c(a,3)
#add other vector
c(a,a)
#add value to a gpu.matrix
a <- gpu.matrix(1:9,nrow=3,ncol=3)
c(a,a)
#it will return a vector as in original c function.
## End(Not run)
[Package GPUmatrix version 1.0.2 Index]