Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
8901c114
Commit
8901c114
authored
Mar 05, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return mean, basis and eigenvalues by const& in PcaModel
parent
7acd4c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
include/eos/morphablemodel/PcaModel.hpp
include/eos/morphablemodel/PcaModel.hpp
+4
-9
No files found.
include/eos/morphablemodel/PcaModel.hpp
View file @
8901c114
...
@@ -113,11 +113,9 @@ public:
...
@@ -113,11 +113,9 @@ public:
/**
/**
* Returns the mean of the model.
* Returns the mean of the model.
*
*
* Todo: Return a const-ref to avoid copying of the vector?
*
* @return The mean of the model.
* @return The mean of the model.
*/
*/
Eigen
::
VectorXf
get_mean
()
const
const
Eigen
::
VectorXf
&
get_mean
()
const
{
{
return
mean
;
return
mean
;
};
};
...
@@ -195,12 +193,9 @@ public:
...
@@ -195,12 +193,9 @@ public:
* The returned basis is rescaled, i.e. every eigenvector
* The returned basis is rescaled, i.e. every eigenvector
* is rescaled by multiplying it with the square root of its eigenvalue.
* is rescaled by multiplying it with the square root of its eigenvalue.
*
*
* Returns a copy of the matrix so that the original cannot
* be modified. TODO: No, don't return a clone.
*
* @return Returns the rescaled PCA basis matrix.
* @return Returns the rescaled PCA basis matrix.
*/
*/
Eigen
::
MatrixXf
get_rescaled_pca_basis
()
const
const
Eigen
::
MatrixXf
&
get_rescaled_pca_basis
()
const
{
{
return
rescaled_pca_basis
;
return
rescaled_pca_basis
;
};
};
...
@@ -234,7 +229,7 @@ public:
...
@@ -234,7 +229,7 @@ public:
*
*
* @return Returns the orthonormal PCA basis matrix.
* @return Returns the orthonormal PCA basis matrix.
*/
*/
Eigen
::
MatrixXf
get_orthonormal_pca_basis
()
const
const
Eigen
::
MatrixXf
&
get_orthonormal_pca_basis
()
const
{
{
return
orthonormal_pca_basis
;
return
orthonormal_pca_basis
;
};
};
...
@@ -260,7 +255,7 @@ public:
...
@@ -260,7 +255,7 @@ public:
*
*
* @return The eigenvalues.
* @return The eigenvalues.
*/
*/
Eigen
::
VectorXf
get_eigenvalues
()
const
const
Eigen
::
VectorXf
&
get_eigenvalues
()
const
{
{
return
eigenvalues
;
return
eigenvalues
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment