Returns the shape of an array as an integer() vector.
Arguments
- x
(
arrayish)
An array-like object.- ...
Additional arguments passed to methods (unused).
Details
This is implemented via the generic tengen::shape().
Examples
x <- nv_array(1:4, dtype = "f32")
shape(x)
#> [1] 4