next previous
Up: On the use of data,


Appendix B: Vector storage of arrays

The relation between the one-dimensional vectors (here symbolized by ${\vec{v}}$) and the matrices (M) they represent is as follows (i represents the rows, j the columns):
\begin{displaymath}
v(k) = M(i,j)~~{\rm for~all}~j\geq i~{\rm and}~k = j(j-1)/2 + i\end{displaymath} (B1)
In a symmetric matrix the additional condition


M(j,i)=M(i,j)

(B2)

applies, and in a lower triangular matrix:
\begin{displaymath}
M(i,j) = 0~~{\rm for~all}~j<i. \end{displaymath} (B3)

next previous
Up: On the use of data,

Copyright The European Southern Observatory (ESO)