concatenate_gpu.matrix | R Documentation |
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'.
## 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)
x |
A |
... |
objects to be concatenated. |
recursive |
The same as |
It will return a vector of type 'numeric' with the combined values.
See also: c
.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.