Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
film
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
film
Commits
984e523d
Commit
984e523d
authored
16 years ago
by
Matthew Webster
Browse files
Options
Downloads
Patches
Plain Diff
Identity to IdentityMatrix
parent
fdf6bf7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
glim.cc
+1
-2
1 addition, 2 deletions
glim.cc
glimGls.cc
+1
-5
1 addition, 5 deletions
glimGls.cc
glm.cc
+1
-2
1 addition, 2 deletions
glm.cc
with
3 additions
and
9 deletions
glim.cc
+
1
−
2
View file @
984e523d
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
glimGls.cc
+
1
−
5
View file @
984e523d
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
glm.cc
+
1
−
2
View file @
984e523d
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment