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 1996

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

Search the Archive

Re: Help: Column/Row Vector

  • To: mathgroup at
  • Subject: [mg4295] Re: Help: Column/Row Vector
  • From: rubin at (Paul A. Rubin)
  • Date: Sat, 29 Jun 1996 03:56:15 -0400
  • Organization: Michigan State University
  • Sender: owner-wri-mathgroup at

In article <4q5k2d$bsb at>,
   khinast at wrote:
->I have two vectors x=(x1,x2) and y = (y1,y1). How can I persuade 
->that e.g. x is a column vector and y is a row vector, which is kind of 
->important for their multiplication .
->I've studied the help page for hours, with no result. So could  
->someone please help me. My email address is: 

I'm not sure just how you're planning to multiply x and y; the inner 
product (Inner[], Dot[]) and outer product (Outer[]) operations work quite 
well with two column vectors.  In any event, if you need to distinguish the 
two, try this:

In[]:=  x := {x1, x2};
	y := {{y1}, {y2}};

In[]:=  Dimensions[ x ]
Out[]=  {2}

In[]:=  Dimensions[ y ]
Out[]=  {2, 1}

Or maybe you want

In[]:=	x := {{x1, x2}};
	Dimensions[ x ]
Out[]=	{1, 2}


* Paul A. Rubin                                  Phone: (517) 432-3509   *
* Department of Management                       Fax:   (517) 432-1111   *
* Eli Broad Graduate School of Management        Net:   RUBIN at MSU.EDU    *
* Michigan State University                                              *
* East Lansing, MI  48824-1122  (USA)                                    *
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.                                    J. W. v. GOETHE


  • Prev by Date: Re: Help: Column/Row Vector
  • Next by Date: Re: Numerical Differentiation
  • Previous by thread: Re: Help: Column/Row Vector
  • Next by thread: Re: Help: Column/Row Vector