I have a templated 2d array std::array< std::array<ScalarType ,3> ,3 > my_array and I want to set them all to zero at different times in the program. It seems like I can use std::array::fill but
my_array.fill(0);
Is not working. How do I fill the 2d array properly?