empty

Construct new uninitialized slice of element type E and shape(length ...).

pure
empty
(
E = double
size_t N
)
(
size_t[N] length...
)

Parameters

length size_t[N]

elements of shape

Return Value

Type: auto

new uninitialized slice

Examples

assert(empty(2, 3).shape == [2, 3]);
assert(empty([2, 3]).shape == [2, 3]);

Meta