N-dimensional / multi-dimensional arrays (tensors) in Scala 3. Think NumPy ndarray / PyTorch Tensor but type-safe over shapes, array/axis labels & numeric data types ...
Ignoring the add_vectors "kernel" function for the moment and jump down to the main function. Here, we first determine the number of bytes of memory required for an array with N double precision ...