MathGroup Archive 2002

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

Search the Archive

Re: matrix multiplication


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