s-news
[Top] [All Lists]

[S] Short summary: Loop avoiding

To: s-news@wubios.wustl.edu
Subject: [S] Short summary: Loop avoiding
From: Statistik Mail <statsoft@stat.math.ethz.ch>
Date: Wed, 29 Jul 1998 21:33:20 +0200
Sender: owner-s-news@wubios.wustl.edu
Thanks to Peter Perkins and Dave Krantz I got an easy answer to my question
on how to efficiently evaluate 
> max(diag(A%*%B))

The answer is 
> max(rep(1, nrow(B)) %*% (t(A)*B))

Thanks again for the fast postings!

Marcel Wolbers
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Short summary: Loop avoiding, Statistik Mail <=