I am trying to write a math library where the base data structure is an Array (n-dimensional). A Matrix inherits this Array with a dimension 2.
Array
Matrix