[Numpy-discussion] Combining arrays together

Bill Baxter wbaxter at gmail.com
Mon Jul 3 03:26:21 EDT 2006


Neat, didn't know about that.  But, grr, always returns matrix regardless of
argument types.
--bb

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.
>
> hth,
> Alan Isaac
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20060703/ad91aab9/attachment.html>


More information about the NumPy-Discussion mailing list