Re: vector[m,1] vector[n,1] matrix[m,n]
- To: mathgroup at smc.vnet.net
- Subject: [mg116027] Re: vector[m,1] vector[n,1] matrix[m,n]
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sat, 29 Jan 2011 05:29:09 -0500 (EST)
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 at 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