From bhs2 at mevik.net  Fri May 12 14:48:59 2006
From: bhs2 at mevik.net (=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=)
Date: Fri, 12 May 2006 14:48:59 +0200
Subject: [Rd] Dropping dimnames doesn't matter (anymore)?
Message-ID: <m08xp7cssk.fsf@bar.nemo-project.org>

In the "old days", one way of speeding up matrix calculations was to
drop the dimnames of the matrices prior to the calculations, i.e.,
dimnames(X) <- NULL.  I distinctly remember that this could have a
great impact at least in Splus 3.x (under UNIX/Linux).

I just did a small, informal test of this with a couple of functions I
use to fit plsr models, in R 2.3.0 (Linux).  It didn't seem to have
any effect at all (the functions actually ran a tiny bit slower,
probably due to the "dimnames(X) <- NULL" command).

Is the "general rule-of-thumb" with current R versions that the
overhead of keeping the dimnames through calculations is negligible?

-- 
Bj?rn-Helge Mevik



[Rd] Dropping dimnames doesn't matter (anymore)?
=?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=