MathGroup Archive 2002

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

Search the Archive

Re: matrix multiplication

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37404] Re: [mg37359] matrix multiplication
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Sat, 26 Oct 2002 02:04:26 -0400 (EDT)
  • References: <200210250646.CAA18095@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Most likely to be improved, but at first glance:

In[1]:=
prod[a_List, b_List] := 
  Table[Table[a[[i]] . Transpose[b][[j]], 
    {j, 1, Dimensions[a][[1]]}], 
   {i, 1, Dimensions[b][[2]]}]

Tomas Garza
Mexico City
----- Original Message ----- 
From: "Rayan Ghosal" <rayan_ghosal at yahoo.com>
To: mathgroup at smc.vnet.net
Subject: [mg37404] [mg37359] matrix multiplication


> how do i write a code for matrix multiplication using mathematica. I
> do not want to use the standard package but rather write the program
> myself in mathematica.
> 
> 



  • Prev by Date: Calculating the Sun's position on a point on Earth sougth
  • Next by Date: The N function and precision
  • Previous by thread: matrix multiplication
  • Next by thread: Find NotebookDirectory