mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-11 03:20:46 +01:00
Eigen plugin const
This commit is contained in:
parent
e4cefae515
commit
0de8091f3c
@ -17,7 +17,7 @@
|
|||||||
* along with LatAnalyze. If not, see <http://www.gnu.org/licenses/>.
|
* along with LatAnalyze. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Derived pInverse(const double tolerance = 1.0e-10)
|
Derived pInverse(const double tolerance = 1.0e-10) const
|
||||||
{
|
{
|
||||||
auto svd = jacobiSvd(Eigen::ComputeThinU|Eigen::ComputeThinV);
|
auto svd = jacobiSvd(Eigen::ComputeThinU|Eigen::ComputeThinV);
|
||||||
const auto u = svd.matrixU();
|
const auto u = svd.matrixU();
|
||||||
@ -52,7 +52,7 @@ Derived pInverse(const double tolerance = 1.0e-10)
|
|||||||
return v*s.asDiagonal()*u.transpose();
|
return v*s.asDiagonal()*u.transpose();
|
||||||
}
|
}
|
||||||
|
|
||||||
Derived singularValues(void)
|
Derived singularValues(void) const
|
||||||
{
|
{
|
||||||
auto svd = jacobiSvd();
|
auto svd = jacobiSvd();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user