HJow do I establish a matrx of arrays like:
[23,45,65,98
45,12,22,34
65,22,25,35
98,34,17,26]

thanks for any feed back
Posted on 2001-11-21 08:44:22 by jps
MyMatrix STRUCT

UNION
f REAL4 16 dup (?)
STRUCT
w REAL 4 dup (?)
x REAL 4 dup (?)
y REAL 4 dup (?)
z REAL 4 dup (?)
ENDS
STRUCT
w0 REAL4 ?
w1 REAL4 ?
w2 REAL4 ?
w3 REAL4 ?
x0 REAL4 ?
x1 REAL4 ?
x2 REAL4 ?
x3 REAL4 ?
y0 REAL4 ?
y1 REAL4 ?
y2 REAL4 ?
y3 REAL4 ?
z0 REAL4 ?
z1 REAL4 ?
z2 REAL4 ?
z3 REAL4 ?
ENDS
ENDS
MyMatrix ENDS

aMatrix MyMatrix { 23.0, 45.0, 65.0, 98.0,
45.0, 12.0, 22.0, 34.0,
65.0, 22.0, 25.0, 35.0,
98.0, 34.0, 17.0, 26.0}
;These all load the same value...
fld aMatrix.x3
fld aMatrix.x[3]
fld aMatrix.f[7]
Edit: Guess you want a matrix of arrays - should have read your question. :) Just replace the REAL4s with DWORDs in the STRUCT, then store the pointers to the arrays in the structure.
Posted on 2001-11-21 12:00:19 by bitRAKE