Re: Putting together a larger matrix from smaller matrices

2009-08-25 Thread Matjaz Bezovnik
On Tue, 25 Aug 2009 08:26:44 -0700, Scott David Daniels wrote: >Matjaz Bezovnik wrote: > >If you are using numpy (which it sounds like you are): > >IDLE 2.6.2 > >>> import numpy as np > >>> v = np.array([[0,1,2],[3,4,5],[6,7,8]], dtype=float) > >&g

Putting together a larger matrix from smaller matrices

2009-08-24 Thread Matjaz Bezovnik
Dear all, I'm but a layman so do not take offence at this maybe over simple question. This is something which is done often in FEM methods, and the alike. I have matrix A of 3x3 elements, and B, of the same number of elements, 3x3. What would be the most obvious way to assemble a matrix which: