Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14915
| From | amannucci <Anthony.J.Mannucci@jpl.nasa.gov> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Working with arrays |
| Date | 2013-06-17 10:17 +0000 |
| Message-ID | <kpmnn5$h3b$1@smc.vnet.net> (permalink) |
| References | <kpjvhm$9n8$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On Sunday, June 16, 2013 2:12:22 AM UTC-7, amannucci wrote:
> I thought I understood variables. This sequence completely mystifies me:
>
> Clear[lA, xtest]
>
> lA = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
>
> xtest = {4, 5, 6};
>
> lA\[CenterDot]xtest (* First case *)
>
> {{a, b}, {c, d}} . {x, y} (* Second case *)
>
>
>
> The output is:
>
>
>
> {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}\[CenterDot]{4, 5, 6}
>
>
>
> {a x + b y, c x + d y}
>
>
>
> How do I force matrix multiplication to actually occur, as in the second answer? Why does Mathematica do the matrix multiply in the second case but not the first?
>
>
>
> Thanks for any help.
>
>
>
> -Tony
I appreciate the replies I have received. Yes, CenterDot is the wrong operator! I am a little rusty here. I appreciate the helpful comments.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Working with arrays amannucci <Anthony.J.Mannucci@jpl.nasa.gov> - 2013-06-16 09:12 +0000
Re: Working with arrays David Bailey <dave@removedbailey.co.uk> - 2013-06-17 10:15 +0000
Re: Working with arrays amannucci <Anthony.J.Mannucci@jpl.nasa.gov> - 2013-06-17 10:17 +0000
Re: Working with arrays David Bailey <dave@removedbailey.co.uk> - 2013-06-19 05:20 +0000
Re: Working with arrays "Kevin J. McCann" <kjm@KevinMcCann.com> - 2013-06-17 10:17 +0000
Re: Working with arrays Roland Franzius <roland.franzius@uos.de> - 2013-06-17 10:18 +0000
csiph-web