Skip to content
Snippets Groups Projects
Commit 984e523d authored by Matthew Webster's avatar Matthew Webster
Browse files

Identity to IdentityMatrix

parent fdf6bf7e
No related branches found
No related tags found
No related merge requests found
......@@ -81,8 +81,7 @@ namespace FILM {
pinv_x = pinv(x);
// R = I - x*pinv(x)
Matrix I(sizeTS, sizeTS);
Identity(I);
Matrix I(IdentityMatrix(sizeTS));
RMat = I - x*pinv_x;
......
......@@ -27,11 +27,7 @@ namespace FILM {
sigmaSquareds(numTS),
dof(sizeTS - numParams)
{
I.ReSize(sizeTS);
for(int i=1; i<=sizeTS; i++)
{
I(i,i)=1;
}
I=IdentityMatrix(sizeTS);
}
void GlimGls::CleanUp()
......
......@@ -32,8 +32,7 @@ namespace FILM {
Computeb();
// r = (I - x(x'x)-1x')y
Matrix I(sizeTS, sizeTS);
Identity(I);
Matrix I(IdentityMatrix(sizeTS));
r = (I-d*inv_xx*d.t())*(y->Column(1));
return r;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment