adding bogus returns after assert(false)

This commit is contained in:
John Dupuy
2023-11-05 18:16:35 -06:00
parent 5af8a39106
commit 0c18245bcf
2 changed files with 6 additions and 6 deletions

View File

@@ -47,6 +47,8 @@ namespace MbD {
FColsptr<T> FullColumn<T>::times(T a)
{
assert(false);
auto answer = std::make_shared<FullColumn<T>>();
return answer;
}
template<typename T>
FColsptr<T> FullColumn<T>::negated()

View File

@@ -334,17 +334,15 @@ namespace MbD {
}
std::shared_ptr<FullMatrixFullMatrixDouble> FullMatrixFullMatrixDouble::times(double a)
{
// TODO: correct action?
assert(false);
return std::make_shared<FullMatrixFullMatrixDouble>();
}
std::shared_ptr<FullMatrixFullColumnDouble> FullMatrixFullColumnDouble::times(double a)
{
// int m = this->nrow();
// auto answer = std::make_shared<FullMatrixFullColumnDouble>(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<FullMatrixFullColumnDouble>();
}
std::shared_ptr<FullMatrixDouble> FullMatrixDouble::transposeTimesFullMatrix(std::shared_ptr<FullMatrixDouble> fullMat)
{