| ggml_matrix-class | R Documentation |
An S4 class holding an ordinary numeric matrix, tagged so that %*%,
crossprod() and tcrossprod() run on the GPU (see
ggml_matmul). Wrap a matrix with as_gpu_matrix.
## S4 method for signature 'ggml_matrix,ANY'
x %*% y
## S4 method for signature 'ANY,ggml_matrix'
x %*% y
## S4 method for signature 'ggml_matrix,ggml_matrix'
x %*% y
## S4 method for signature 'ggml_matrix'
crossprod(x, y)
## S4 method for signature 'ggml_matrix'
tcrossprod(x, y)
## S4 method for signature 'ggml_matrix'
dim(x)
## S4 method for signature 'ggml_matrix'
show(object)
x, y |
Operands; at least one is a |
object |
A |
%*%, crossprod and tcrossprod return a plain
numeric matrix (the GPU result); dim an integer vector.
dataThe underlying numeric matrix.
deviceDispatch preference: "auto", "gpu" or "cpu".
precPrecision of the GPU path: "f32" or "f16".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.