dtype

Returns the typeid of the element type of S.

pure
dtype
(
S
)
(
S s
)

Examples

import mir.ndslice.topology : iota, as;

auto e = iota([2, 3, 1, 3]).as!double;
assert(e.dtype == typeid(double));
assert(e.dtype != typeid(float));

Meta