Triangular Matrix



I want to get a Mapping Function for following sparse matrix of size
NxN , where N is odd
-----------------------------------------------------------------------------------
0 0 0 0 0 ... 0 a1,n
0 0 0 0 0 ... ... 0 0
0 0 0 0 0 ... a3,n-2 a3,n-1 a3,n
0 0 0 0 0 .. ... 0 0
0 0 0 ... a5,n-4 a5,n-3 a5,n-2 a5,n-1 a5,n
.... .... ... ... ... ... .. ...
.......................................................................
.......................................................................
0 0 0 0 0 ..... 0 0 0
an1 an2 an3 an4 an5 ... an,n-2 an,n-1 an,n
-------------------------------------------------------------------------------------

Suggest a mapping function to map the elements of the matrix onto a
single dimensional array
in which zero "0" elements do not have representation.

Please, any body could find mapping function formula for this kind of
Matrix.

.



Relevant Pages

  • Triangular Matrix2
    ... for example if we have n=5: then the map like: ... kindly what the Mapping Function for this matrix in order to ... in which zero "0" element will not have ... representation. ...
    (comp.lang.c)
  • Re: Triangular Matrix
    ... any body could find mapping function formula for this kind of ... want to find an index value for a flat array that skips over elements that are known to be zero. ... Noting that only odd rows are significant, ...
    (comp.lang.c)