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 1998

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

Search the Archive

Re: No trace of trace!

  • To: mathgroup at
  • Subject: [mg15190] Re: No trace of trace!
  • From: "Albert Maydeu-Olivares" <amaydeu at>
  • Date: Fri, 18 Dec 1998 02:11:06 -0500
  • Organization: University of Barcelona
  • References: <754ulc$>
  • Sender: owner-wri-mathgroup at

Here are a few useful matrix functions, including the trace you asked

VecDiag[matrix_List]:=Table[matrix[[i,i]], {i,Length[matrix]}]
Tr[matrix_List]:=Plus@@VecDiag[matrix] -- 

Albert Maydeu-Olivares				Tel. +34 3 4021079 ext. 3099 Faculty of
Psychology 				Fax. +34 3 4021362 University of Barcelona				E-Mail:
amaydeu at Passeig de la Vall d'Hebron, 171.  
08035 - Barcelona (Spain)

Peter Jay Salzman <psalzman at> escribió en artículo
<754ulc$je8 at>...
> After looking for close to 5 minutes, I've concluded that the Trace
> *matrix* operation is either not present or well hidden.
> Can someone tell me which one?
> Pete

  • Prev by Date: Re: Linearization
  • Next by Date: Re: rician random number
  • Previous by thread: Re: No trace of trace!
  • Next by thread: package loading