From J.C.Rougier@durham.ac.uk  Mon Sep 27 11:18:52 1999
From: J.C.Rougier@durham.ac.uk (Jonathan Rougier)
Date: Mon, 27 Sep 1999 11:18:52 +0100 (BST)
Subject: chol() dimnames
Message-ID: <Pine.GSO.3.96.990927110820.382H-100000@laplace>

Hi Everyone,

Just a minor point, but could chol() be changed to include the dimnames of
the original matrix?  This will ensure that x and t(R) %*% R have the same
dimnames, where R <- chol(x).  So we just need to insert

    if (!is.null(dx <- dimnames(x))) 
        dimnames(z$v) <- dx

ahead of the return.  Cheers, Jonathan.

Jonathan Rougier                       Science Laboratories
Department of Mathematical Sciences    South Road
University of Durham                   Durham DH1 3LE

"[B]egin upon the precept ... that the things we see are to be 
 weighed in the scale with what we know"  (Meredith, 1879, The Egoist)

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


chol() dimnames
Jonathan Rougier