From 0c18245bcff0418d99e18551b6100b6f1394447b Mon Sep 17 00:00:00 2001 From: John Dupuy Date: Sun, 5 Nov 2023 18:16:35 -0600 Subject: [PATCH] adding bogus returns after assert(false) --- OndselSolver/FullColumn.cpp | 2 ++ OndselSolver/FullMatrix.cpp | 10 ++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OndselSolver/FullColumn.cpp b/OndselSolver/FullColumn.cpp index 479a66f..b173b08 100644 --- a/OndselSolver/FullColumn.cpp +++ b/OndselSolver/FullColumn.cpp @@ -47,6 +47,8 @@ namespace MbD { FColsptr FullColumn::times(T a) { assert(false); + auto answer = std::make_shared>(); + return answer; } template FColsptr FullColumn::negated() diff --git a/OndselSolver/FullMatrix.cpp b/OndselSolver/FullMatrix.cpp index 1a12d03..7296c7f 100644 --- a/OndselSolver/FullMatrix.cpp +++ b/OndselSolver/FullMatrix.cpp @@ -334,17 +334,15 @@ namespace MbD { } std::shared_ptr FullMatrixFullMatrixDouble::times(double a) { + // TODO: correct action? assert(false); + return std::make_shared(); } std::shared_ptr FullMatrixFullColumnDouble::times(double a) { -// int m = this->nrow(); -// auto answer = std::make_shared(m); -// for (int i = 0; i < m; i++) { -// answer->at(i) = this->at(i)->times(a); -// } -// return answer; + // TODO: correct action? assert(false); + return std::make_shared(); } std::shared_ptr FullMatrixDouble::transposeTimesFullMatrix(std::shared_ptr fullMat) {