Array initialization

Note that an Array is always a one dimensional structure so it doesn’t make that sense to introduce two-dimensional syntax.
Instead, create a new type Matrix<T> which can be initialized with m, n and a value of choice.
Or equivalently introduce the tensor type with variadic dimension arguments in initializers though you loose static type safety considering compatibility to tensor operations.

2 Likes