Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15649
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: matrix[m,n] |
| Date | 2011-01-29 10:40 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ii0qrg$jft$1@smc.vnet.net> (permalink) |
On 1/28/11 at 6:11 AM, he.frauendorfer@t-online.de (EF) wrote:
>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]
It isn't entirely clear to me what you want to accomplish. The
dot product of two vectors will never be a matrix. In
Mathematica the notation v1[m,1] is the function v1 evaluated at
arguments m and 1. It is definitely not a vector.
I am going to guess you want to do something like
In[11]:= v1 = RandomInteger[{-5, 5}, {3}];
v2 = RandomInteger[{10, 20}, 5];
Outer[Times, v1, v2]
Out[13]= {{-34, -26, -24, -36, -28}, {-68, -52, -48, -72, -56},
{51, 39, 36, 54, 42}}
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: matrix[m,n] Bill Rowe <readnews@sbcglobal.net> - 2011-01-29 10:40 +0000
csiph-web