NRMat svdinverse()

This commit is contained in:
2026-09-05 09:47:01 +02:00
parent e5073a3141
commit 47913b40ce
4 changed files with 56 additions and 12 deletions
+18 -7
View File
@@ -3495,21 +3495,32 @@ copyonwrite();
}
//cannot be in mat.h - would be undefined for intereger types
template<>
NRMat<double> NRMat<double>::inverse()
NRMat<double> NRMat<double>::inverse() const
{
NRMat<double> tmp(*this);
return calcinverse(tmp);
return calcinverse(*this);
}
template<>
NRMat<std::complex<double> > NRMat<std::complex<double> >::inverse()
NRMat<std::complex<double> > NRMat<std::complex<double> >::inverse() const
{
NRMat<std::complex<double> > tmp(*this);
return calcinverse(tmp);
return calcinverse(*this);
}
template<>
NRMat<double> NRMat<double>::svdinverse(const double thr) const
{
return calcsvdinverse(*this,thr);
}
template<>
NRMat<std::complex<double> > NRMat<std::complex<double> >::svdinverse(const double thr) const
{
return calcsvdinverse(*this,thr);
}