MathGroup Archive 2000

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

Search the Archive

Re: vector multiplication

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).


Yannis.Paraskevopoulos at 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