[S] Short summary: Loop avoiding

Statistik Mail (statsoft@stat.math.ethz.ch)
Wed, 29 Jul 1998 21:33:20 +0200


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