rbotafogo / mdarray

Multidimensional array similar to NumPy and NArray
Other
36 stars 7 forks source link

Make MDArray aware of MDMatrix instances #14

Open rbotafogo opened 10 years ago

rbotafogo commented 10 years ago

When an MDMatrix is instanciated, an MDArray sibling is also instanciated. An instance of MDMatrix can be constructed as: matrix = MDMatrix.double([5, 5]. If we do array = matrix.mdarray, then array is the sibling of matrix and both matrix and array point to the same backing store. if we do an structural change in matrix, for instance, transpose a column, then the same function is done to the array. However, if we do a strucutral change in the array, then the matrix will no be aware of the change.