No subject


Thu Nov 16 16:52:29 CST 2006


.A - get the array
.T - get the transpose
.H - get the conjugate transpose
.I - get the inverse

The other difference which isn't really obvious from looking at the source
code is that matrices always have at least rank 2.  I.e. .shape[0] and
.shape[1] are always present for a matrix.

--bb


On 3/15/06, Ryan Krauss <ryanlists at gmail.com> wrote:
>
> Is there a difference between matrix and array objects other than how
> they handle multiplication?  Is there documentation somewhere about
> matrix objects?  Are they new?
>
> Thanks,
>
> Ryan
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat=121642
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>



--
William V. Baxter III
OLM Digital
Kono Dens Building Rm 302
1-8-8 Wakabayashi Setagaya-ku
Tokyo, Japan  154-0023
+81 (3) 3422-3380

------=_Part_1999_22917142.1142392091111
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Inspect is a really handy python module:<br>&nbsp;&nbsp;&nbsp;&nbsp; import=
 inspect<br>&nbsp;&nbsp;&nbsp;&nbsp; import numpy<br>&nbsp;&nbsp;&nbsp;&nbs=
p; print inspect.getsource(numpy.matrix)<br><br>From that it looks like exp=
onentiation (__pow__) is also overloaded, and there are the additional prop=
erties:
<br>.A - get the array<br>.T - get the transpose<br>.H - get the conjugate =
transpose<br>.I - get the inverse<br><br>The other difference which <span s=
tyle=3D"font-style: italic;">isn't </span>really obvious from looking at th=
e source code is that matrices always have at least rank 2.&nbsp;=20
I.e. .shape[0] and .shape[1] are always present for a matrix.<br><br>--bb<b=
r><br><br><div><span class=3D"gmail_quote">On 3/15/06, <b class=3D"gmail_se=
ndername">Ryan Krauss</b> &lt;<a href=3D"mailto:ryanlists at gmail.com">ryanli=
sts at gmail.com
</a>&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"border-lef=
t: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1=
ex;">Is there a difference between matrix and array objects other than how<=
br>
they handle multiplication?&nbsp;&nbsp;Is there documentation somewhere abo=
ut<br>matrix objects?&nbsp;&nbsp;Are they new?<br><br>Thanks,<br><br>Ryan<b=
r><br><br>-------------------------------------------------------<br>This S=
F.Net email is sponsored by xPML, a groundbreaking scripting language
<br>that extends applications into web and mobile media. Attend the live we=
bcast<br>and join the prime developer group breaking into this new coding t=
erritory!<br><a href=3D"http://sel.as-us.falkag.net/sel?cmdlnk&amp;kid=1109=
44&amp;bid$1720&amp;dat=121642">
http://sel.as-us.falkag.net/sel?cmdlnk&amp;kid=110944&amp;bid$1720&amp;dat=
=121642</a><br>_______________________________________________<br>Numpy-dis=
cussion mailing list<br><a href=3D"mailto:Numpy-discussion at lists.sourceforg=
e.net">
Numpy-discussion at lists.sourceforge.net</a><br><a href=3D"https://lists.sour=
ceforge.net/lists/listinfo/numpy-discussion">https://lists.sourceforge.net/=
lists/listinfo/numpy-discussion</a><br></blockquote></div><br><br clear=3D"=
all">
<br>-- <br>William V. Baxter III<br>OLM Digital<br>Kono Dens Building Rm 30=
2<br>1-8-8 Wakabayashi Setagaya-ku<br>Tokyo, Japan&nbsp;&nbsp;154-0023<br>+=
81 (3) 3422-3380

------=_Part_1999_22917142.1142392091111--




More information about the Numpy-discussion mailing list