[Lme4-commits] r1421 - pkg/lme4Eigen/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Oct 17 22:57:43 CEST 2011
Author: dmbates
Date: 2011-10-17 22:57:42 +0200 (Mon, 17 Oct 2011)
New Revision: 1421
Modified:
pkg/lme4Eigen/src/respModule.cpp
pkg/lme4Eigen/src/respModule.h
Log:
Change working weights to be a matrix.
Modified: pkg/lme4Eigen/src/respModule.cpp
===================================================================
--- pkg/lme4Eigen/src/respModule.cpp 2011-10-17 20:30:56 UTC (rev 1420)
+++ pkg/lme4Eigen/src/respModule.cpp 2011-10-17 20:57:42 UTC (rev 1421)
@@ -109,7 +109,7 @@
return (d_eta - d_offset) + wrkResids();
}
- VectorXd glmResp::sqrtWrkWt() const {
+ MatrixXd glmResp::sqrtWrkWt() const {
const VectorXd me(muEta());
return d_weights.cwiseProduct(me).cwiseProduct(me).cwiseQuotient(variance()).cwiseSqrt();
}
Modified: pkg/lme4Eigen/src/respModule.h
===================================================================
--- pkg/lme4Eigen/src/respModule.h 2011-10-17 20:30:56 UTC (rev 1420)
+++ pkg/lme4Eigen/src/respModule.h 2011-10-17 20:57:42 UTC (rev 1421)
@@ -69,7 +69,7 @@
VectorXd devResid() const;
VectorXd muEta() const;
- VectorXd sqrtWrkWt() const;
+ MatrixXd sqrtWrkWt() const;
VectorXd variance() const;
VectorXd wrkResids() const;
VectorXd wrkResp() const;
More information about the Lme4-commits
mailing list