<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY id=role_body style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial" 
bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7><FONT id=role_document 
face=Arial color=#000000 size=2>
<DIV>I originally posted under the subject Values in matrices.&nbsp; The two 
responses that I received from that topic&nbsp;were excellent and helped me a 
lot, but I have run into a problem that I did not anticipate having when I first 
asked the question.&nbsp; What I need help with now is how to assign 
multiple&nbsp;values to&nbsp;the same locations in&nbsp;a 
pre-constructed&nbsp;matrix&nbsp;and then sum the values&nbsp;at&nbsp;those 
points.&nbsp; Unfortunately, there is no&nbsp;way to determine which values 
will&nbsp;need to be summed before placing them into the matrix&nbsp;without 
defeating the entire purpose of the program, that is why the values have to be 
summed after they are placed in the matrix.&nbsp; My rational behind writing a 
program that does this is that I am trying to implement the MNA (Modified Nodal 
Analysis) Algorithm (a technique for "solving" electrical circuits) in a program 
making the assumptions that the circuit to be solved is planar, that 
the&nbsp;user already knows the values for every element in the circuit 
and&nbsp;which nodes the element is connected to.&nbsp; I have looked through 
the owners manual for numarray and saw that "<EM>The </EM><A 
id=l2h-30><!--x--></A><EM><TT class=class>numarray</TT> constructor takes a data 
argument, an optional type, and an optional shape argument. If the data argument 
is a sequence, then array creates a new object of type <TT 
class=class>numarray</TT>, and fills the array with the elements of the data 
object. The shape of the array is determined by the size and nesting arrangement 
of the elements of data</EM>."&nbsp;This gives me the&nbsp;impression that what 
I am asking cannot be done&nbsp;by making every point in the matrix a list and 
then summing the individual&nbsp;lists after the values have been placed in 
them, which is what I thought of doing first.&nbsp; I would prefer&nbsp;not 
making any more variable names than I had listed in my original post in 
order&nbsp;to keep from confusing myself as too what each internal variable 
means.&nbsp; Any help either on how to do what I am asking or how to circumvent 
the need to sum values after they have placed in&nbsp;placed in the matrix would 
be appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Joseph</DIV></FONT></BODY></HTML>