Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14909 > unrolled thread

Re: Working with arrays

Started byMurray Eisenberg <murray@math.umass.edu>
First post2013-06-17 10:14 +0000
Last post2013-06-17 10:14 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Working with arrays Murray Eisenberg <murray@math.umass.edu> - 2013-06-17 10:14 +0000

#14909 — Re: Working with arrays

FromMurray Eisenberg <murray@math.umass.edu>
Date2013-06-17 10:14 +0000
SubjectRe: Working with arrays
Message-ID<kpmnin$h1l$1@smc.vnet.net>
Just use plain old "." (period).

CenterDot has no built-in meaning, as DocumentationCenter page ref/CenterDot explains. You could give it the meaning of Dot by using the Notation package, but that would merely provide a bit of notational proximity to the usual mathematical notation at the expense of the annoyance and traps of the package.

On Jun 16, 2013, at 5:19 AM, amannucci <Anthony.J.Mannucci@jpl.nasa.gov> 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

---
Murray Eisenberg                                    murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower            phone 413 549-1020 (H)
University of Massachusetts                               413 545-2838 (W)
710 North Pleasant Street                         fax   413 545-1801
Amherst, MA 01003-9305





[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web