in reply to Re^3: loop over n-dimensional lattice
in thread loop over n-dimensional lattice

A big help. Thanks. I used "lattice" to refer to the mathematical construct that I care about instead of "array" which is a data structure that I could be easily convinced to ditch for something better. Apologies if it muddled the question.

Replies are listed 'Best First'.
Re^5: loop over n-dimensional lattice
by BrowserUk (Patriarch) on Aug 06, 2008 at 20:07 UTC
    Apologies if it muddled the question.

    Not at all. It's just that you will have to represent your theoretical construct with an actual structure. If arrays work, they are cheaper in memory and performance than say hashes, which could probably also be used. But obviously, the mechanism for iterating a hash-based representation of your lattices, would require different coding methods.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.