Sure, you can store a triangular matrix in a single array. Now write a procedure for multiplying two of them.
Really simple and transparent, right (or wrong)?
HF
Frank Heckenbach wrote:
Prof. Harley Flanders wrote:
Sometimes life is simpler than appears at first glance :-)
I should have put in the stuff below in my previous message; I was thinking of triangular matrices, where you save memory by having the rows of different lengths.
It's probably more efficient to store it in a single array similar to the link below (quick Google search) than allocating each row individually.
http://www.itl.nist.gov/div897/sqg/dads/HTML/upperTriangularMatrix.html
But please tell me, have you _ever_ used 3-D arrays? 4-D arrays?
Yes. Yes.
Frank