Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Don't want to calculate scalar product

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19740] Re: [mg19708] Don't want to calculate scalar product
  • From: Jean-Marie Thomas <jmt at agat.net>
  • Date: Mon, 13 Sep 1999 02:41:05 -0400
  • Organization: TeA
  • References: <199909112036.QAA04471@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

Try this :

rowVector=Array[a,3]
columnVector=Array[{b at #}&,3]

Outer[Times,columnVector,rowVector]

Hope this helps,

jmt


On Sat, 11 Sep 1999, Toshiyuki (Toshi) Meshii wrote:
> Hi,
> 
> I understand that one of the unique point of Mathematica is that you don't
> have to be conscious about whether a vector is a "row" or a "column" vector.
> 
> However, I think there is a case in which you have to specify whether you
> want Mathematica to recognize a vector as a row vector or a column vector.
> Let me explain my case.
> 
> a={1,2,3}; b={4,5,6}
> 
> I want to define "a" as a column vector (3x1 matrix) and "b" as a row vector
> (1x3 matrix).
> 
> I expect the product
>  a.b
> as a 3x3 matrix, but the answer Mathematica gives is a scalar product "32".
> 
> Please give me an advice to get the 3x3 matrix as a product.
> 
> -Toshi


  • Prev by Date: Re: Don't want to calculate scalar product
  • Next by Date: Re: direction field plots
  • Previous by thread: Don't want to calculate scalar product
  • Next by thread: Re: Don't want to calculate scalar product