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 2002

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

Search the Archive

Re: matrix multiplication

  • To: mathgroup at
  • Subject: [mg37404] Re: [mg37359] matrix multiplication
  • From: Tomas Garza <tgarza01 at>
  • Date: Sat, 26 Oct 2002 02:04:26 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

Most likely to be improved, but at first glance:

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>
To: mathgroup at
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