Coder's Guild Mailing List

Re: Matrices

Posted by Franz-Leo Chomse on 2000-04-19

> What happens when a one is placed at [4][-1] is that a one
>appears at [3][26]. If anyone knows a lot about this, please let me know
>because I don't want to bore this entire mailing list with the exact 
>details (it's cryptography).

Each array is threated as one dimensional. In the multidimensional case,
code is added to convert the set of indices to one offset without checking
each index.

array of array of array ... 

Something like

.. + Index ) * Size of SubMatrix + Index ) * Size of SubMatrix ) + Index

Regards from Germany

Franz-Leo