Templates working again

This commit is contained in:
Aik-Siong Koh
2023-11-30 20:58:49 -07:00
parent ee1d97eb18
commit 9b1529f3ed
79 changed files with 2063 additions and 2222 deletions

View File

@@ -48,7 +48,7 @@ FColDsptr MbD::StableBackwardDifference::derivativepresentpastpresentDerivativep
void StableBackwardDifference::instantiateTaylorMatrix()
{
if (taylorMatrix == nullptr || (taylorMatrix->nrow() != (order))) {
taylorMatrix = std::make_shared<FullMatrixDouble>(order, order);
taylorMatrix = std::make_shared<FullMatrix<double>>(order, order);
}
}
@@ -79,7 +79,7 @@ FColDsptr MbD::StableBackwardDifference::derivativepresentpast(int deriv, FColDs
//"Answer ith derivative given present value and past values."
if (deriv == 0) {
return y->cloneFcSptr();
return std::static_pointer_cast<FullColumn<double>>(y->clonesptr());
}
else {
if (deriv <= order) {