[Numpy-discussion] Combining arrays together
wbaxter at gmail.com
Mon Jul 3 02:26:21 CDT 2006
Neat, didn't know about that. But, grr, always returns matrix regardless of
On 7/3/06, Alan G Isaac <aisaac at american.edu> wrote:
> On Mon, 3 Jul 2006, Bill Baxter apparently wrote:
> > What's the best way to combine say several 2-d arrays
> > together into a grid?
> >>> help(N.bmat)
> Help on function bmat in module numpy.core.defmatrix:
> bmat(obj, ldict=None, gdict=None)
> Build a matrix object from string, nested sequence, or array.
> Ex: F = bmat('A, B; C, D')
> F = bmat([[A,B],[C,D]])
> F = bmat(r_[c_[A,B],c_[C,D]])
> all produce the same Matrix Object [ A B ]
> [ C D ]
> if A, B, C, and D are appropriately shaped 2-d arrays.
> Alan Isaac
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion