Registers a backend implementation for a specific tensor type, along with any
required dependencies, testing flag, and optional aliases. This function
wraps the backend class in a thunk() and registers it with the backend
registry.
register_backend(
tensor_type,
backend_class,
dependencies = character(0),
testing = FALSE,
aliases = character(0)
)Invisibly returns the backend registry object.
A string specifying the tensor type the backend supports.
An R6Class generator for the backend (subclass of EinopsBackend). Note that this binding does not necessarily have to have a defined value at the time of calling this function.
Optional character vector of required package names.
If TRUE, indicates its only used for testing.
Optional character vector of aliases for the tensor type.