Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: vector multiplication

  • To: mathgroup at
  • Subject: [mg25537] Re: vector multiplication
  • From: "Hans Staugaard" <hans.staugaard at>
  • Date: Sat, 7 Oct 2000 03:35:41 -0400 (EDT)
  • References: <8rjjdh$>
  • Sender: owner-wri-mathgroup at


First I make a sample matrix:

v = Array[Plus, {5, 3}]

{{2, 3, 4}, {3, 4, 5}, {4, 5, 6}, {5, 6, 7}, {6, 7, 8}}

Then pick out the diagonal elements:

Tr[Transpose[v].v, List]

{90, 135, 190}


<Yannis.Paraskevopoulos at> wrote in message
news:8rjjdh$ofq at
> 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.
> Thanks a lot in advance for your effort.
> yannis
> Visit our website at
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.

  • Prev by Date: advanced keystroke remapping
  • Next by Date: Re: vector multiplication
  • Previous by thread: Re: vector multiplication
  • Next by thread: Re: vector multiplication