Je-Givara wrote On 10/31/06 15:29,:
this is new mapping function needed for following
---------------------------------------------------------------
a11 a12 a13 .... a1n
0 a22 a23 .... a2n
0 0 a33 .... a3n
. .
0 0 0 .... ann
----------------------------------------------------
for example if we have n=5 : then the map like:
----------------------------------------------------
a1,1 a1,2 a1,3 a1,4 a1,5
0 a2,2 a2,3 a2,4 a2,5
0 0 a3,3 a3,4 a3,5
0 0 0 a4,4 a4,5
0 0 0 0 a5,5
---------------------------------------------------
so, kindly what the Mapping Function for this matrix in order to
represent it using
Single1 dimension Array, in which zero "0" element will not have
representation.
Je-Givara, I'm not going to answer this one (and I hope
no one else will, either). For one thing, it's not really a
question about the C language or how to use it; the answer
would be equally applicable in BASIC or Fortran or Pascal or
any other programming language that supports arrays. The
only C-related issue I can spot is the fact that C arrays
start at index [0] (which is not a universal practice among
programming languages), and this introduces a small amount
of confusion that needs to be ironed out when you implement
the mapping in C.
The second reason I decline to answer is that you have
already been given two fully-worked solutions to a related
but more complicated problem. If you have studied those
solutions and understood them, solving this problem ought to
be child's play. But if you've studied them and been unable
to understand you need more help than Usenet can give, and
if you haven't even bothered to study ... well, I'm too lazy
to waste time on lazy people.
Go back to the answers you received for your earlier
question, and apply the methods explained there to solve
this simpler one. GO!
--
Er*********@sun.com