Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16000
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: vector[m,1] vector[n,1] matrix[m,n] |
| Date | 2011-01-29 10:43 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ii0r16$jht$1@smc.vnet.net> (permalink) |
Your dimensions are not compatible to obtain an m-by-n result; your v2
should have dimensions {1,n}.
The kernel function Dot then will calculate the matrix product. Example:
v1 = { {2}, {4}, {6} };
v2 = { {1, 3 };
v1 . v2
On 1/28/2011 6:11 AM, EF wrote:
> Hi,
>
> is there a "simple kernel based" routine to do the scalar product of two
> one dimensional vectors, producing the m,n Matrix:
>
> v1[m,1].v2[n,1] -> mat[m,n]
>
>
>
> Thanks E.F.
>
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: vector[m,1] vector[n,1] matrix[m,n] Murray Eisenberg <murray@math.umass.edu> - 2011-01-29 10:43 +0000
csiph-web