Same as this constructor for a number of dimensions up to 4. szi is the size in the i-th dimension, and sti it the stride in the i-th dimension.