Bind an amatrix object to resident backend storage
Source:R/bind-resident.R
amatrix_bind_resident.RdUpload a dense or sparse matrix to a residency-capable backend and return the
corresponding aMatrix object with a live resident binding. This is
primarily useful for repeated GPU work where paying the upload cost once is
preferable to relying on cold-path dispatch.
Arguments
- x
An
adgeMatrix,adgCMatrix, base matrix, or sparse Matrix object.- backend
Backend name,
"auto", orNULL. When leftNULLor set to"auto",amatrixpicks the first residency-capable accelerator backend that supports the requested resident operation.- op
Optional operation name such as
"matmul"used when selecting an automatic resident backend.- y
Optional rhs object used when checking resident-op support for automatic backend selection.