Programming, Cplusplus.
tensor. Second, it does not scale to higher dimensions: we should add one nested vector per dimension; the type of m_data would then depend on the number of dimensions, that is a static type would depend on a dynamic value, which is not possible. Fortunately, both problems have the same solution: