Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

:ARRAY-ROW-MAJOR-INDEX

source files: x01v.[ch] xflv.[ch] x32v.[ch] xcsy.[ch] xgrl.[ch]

SYNTAX

(SEND <ary> :ARRAY-ROW-MAJOR-INDEX <fix> ... ) 

DESCRIPTION

Converts a normal index into an array or relation into a row-major index. A row-major index is one which treats the array as one-dimensional. Thus, (send a :ARRAY-ROW-MAJOR-INDEX 2 3) will tell you the actual linear offset in the array of the 2,3 element.

Useful if you want to process some part of a multidimensional array as though it were one-dimensional, using the other ROW-MAJOR calls.


Go to the first, previous, next, last section, table of contents.