NRMat svdinverse()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user