MathGroup Archive 2000

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

Search the Archive

Re: vector multiplication

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25539] Re: vector multiplication
  • From: Alberto Ruiz <ARuiz at um.es>
  • Date: Sat, 7 Oct 2000 03:35:43 -0400 (EDT)
  • Organization: University of Murcia, Spain
  • References: <8rjjdh$ofq@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Yannis, in Mathematica there is no difference between row and column vectors,
but you can use matrices: {{a,b,c}} is a row vector {{a},{b},{c}} is 
a column vector.

You can also use Outer[Times,list1,list2] to get the product of
a column vector list1 and a row vector list2.

But note that the diagonal elements of the outer product of a vector
and itself is just v v (a vector with the elements squared).

Alberto

Yannis.Paraskevopoulos at ubsw.com wrote:
> 
> Hi there,
> 
> Could you please help me with the following:
> 
> Assume the v is a vector (1xk). I would like to calculate the v'v and
> then take all the diagonal elements.
>


  • Prev by Date: Re: NDSolve and DiracDelta function
  • Next by Date: Importing a .gif into a new notebook
  • Previous by thread: vector multiplication
  • Next by thread: Re: vector multiplication