Returns the data type of an array (e.g. f32, i64).
Arguments
- x
(
arrayish)
An array-like object.- ...
Additional arguments passed to methods (unused).
Value
A DataType.
Details
This is implemented via the generic tengen::dtype().
Examples
x <- nv_array(1:4, dtype = "f32")
dtype(x)
#> <f32>