diff --git a/MathLib/LinAlg/LinAlg.cpp b/MathLib/LinAlg/LinAlg.cpp index ceb5fc991b0d7ffaa6c4c3bc75f2c8d1c8b08499..fc6432473e954f9066913522f60f49677c2ee89e 100644 --- a/MathLib/LinAlg/LinAlg.cpp +++ b/MathLib/LinAlg/LinAlg.cpp @@ -308,6 +308,8 @@ void finalizeAssembly(EigenMatrix& x) x.getRawMatrix().makeCompressed(); } +void finalizeAssembly(EigenVector& x) {} + } // namespace LinAlg } // namespace MathLib diff --git a/MathLib/LinAlg/LinAlg.h b/MathLib/LinAlg/LinAlg.h index 16c344376b2c79ce866301af5f9044bb4b893400..f03c4119994e85e1052c1c4cf08bc9bbfb4cb428 100644 --- a/MathLib/LinAlg/LinAlg.h +++ b/MathLib/LinAlg/LinAlg.h @@ -98,11 +98,8 @@ double norm(MatrixOrVector const& x, MathLib::VecNormType type) } } -template<typename Matrix> -void finalizeAssembly(Matrix& /*A*/) -{ - // By default do nothing. -} +template <typename Matrix> +void finalizeAssembly(Matrix& /*A*/); // Matrix and Vector @@ -260,6 +257,7 @@ void matMultAdd(EigenMatrix const& A, EigenVector const& v1, EigenVector const& v2, EigenVector& v3); void finalizeAssembly(EigenMatrix& A); +void finalizeAssembly(EigenVector& A); } // namespace LinAlg