Transfers tensor data to R and returns it as an R array.
Only in the case of scalars is the result a vector of length 1, as R arrays cannot have 0 dimensions.
Arguments
- x
(
tensorish)
A tensor-like object.- ...
Additional arguments passed to methods (unused).
Value
An R array or vector of length 1.
Details
This is implemented via the generic tengen::as_array().