MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: vector[m,1] vector[n,1] matrix[m,n]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116004] Re: vector[m,1] vector[n,1] matrix[m,n]
  • From: Oliver Ruebenkoenig <ruebenko at wolfram.com>
  • Date: Sat, 29 Jan 2011 05:24:28 -0500 (EST)

On Fri, 28 Jan 2011, 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]
>


Hi,

like this:

m = 3;
n = 2;
v1 = RandomReal[{0, 1}, {m, 1}];
v2 = RandomReal[{0, 1}, {1, n}];
Dimensions[v1.v2]

Oliver

>
>
> Thanks    E.F.
>
>


  • Prev by Date: Re: Simple n-tuple problem - with no simple solution
  • Next by Date: implementation for Binarize
  • Previous by thread: vector[m,1] vector[n,1] matrix[m,n]
  • Next by thread: Re: vector[m,1] vector[n,1] matrix[m,n]