diff --git a/MathLib/LinAlg/Dense/DenseTools.cpp b/MathLib/LinAlg/Dense/DenseTools.cpp index 32a9cf03999ea34bfb1ff3250d99f1b5ba745b7f..f9ae84c7722e40afc6bb627c883c000ecb85e467 100644 --- a/MathLib/LinAlg/Dense/DenseTools.cpp +++ b/MathLib/LinAlg/Dense/DenseTools.cpp @@ -16,9 +16,8 @@ namespace MathLib { - -void applyKnownSolution(DenseMatrix<double> &eqsA, DenseVector<double> &eqsRHS, - DenseMatrixIndexType k, double val) +void applyKnownSolution(DenseMatrix<double>& eqsA, DenseVector<double>& eqsRHS, + DenseMatrix<double>::IDX_T k, double val) { const std::size_t n_rows = eqsA.getNRows(); const std::size_t n_cols = eqsA.getNCols(); @@ -47,10 +46,10 @@ void applyKnownSolution(DenseMatrix<double> &eqsA, DenseVector<double> &eqsRHS, eqsRHS[k] = val; } -void applyKnownSolution(DenseMatrix<double> &A, DenseVector<double> &b, - DenseVector<double> &/*x*/, - const std::vector<DenseMatrixIndexType> &vec_knownX_id, - const std::vector<double> &vec_knownX_x) +void applyKnownSolution( + DenseMatrix<double>& A, DenseVector<double>& b, DenseVector<double>& /*x*/, + const std::vector<DenseMatrix<double>::IDX_T>& vec_knownX_id, + const std::vector<double>& vec_knownX_x) { const std::size_t n_bc = vec_knownX_id.size(); for (std::size_t i_bc = 0; i_bc < n_bc; i_bc++) diff --git a/MathLib/LinAlg/Dense/DenseTools.h b/MathLib/LinAlg/Dense/DenseTools.h index 97bbdad888685f5aab0e8410e1a3d727aa6287ce..826e8e510bfbab02a75a3414d4f923cb4c2a30cb 100644 --- a/MathLib/LinAlg/Dense/DenseTools.h +++ b/MathLib/LinAlg/Dense/DenseTools.h @@ -21,7 +21,6 @@ namespace MathLib { -typedef DenseMatrix<double>::IDX_T DenseMatrixIndexType; /** * Apply known solutions to a system of linear equations. * @@ -33,10 +32,10 @@ typedef DenseMatrix<double>::IDX_T DenseMatrixIndexType; * @param vec_knownX_id a vector of known solution entry IDs * @param vec_knownX_x a vector of known solutions */ -void applyKnownSolution(DenseMatrix<double> &A, DenseVector<double> &b, - DenseVector<double> &/*x*/, - const std::vector<DenseMatrixIndexType> &vec_knownX_id, - const std::vector<double> &vec_knownX_x); +void applyKnownSolution( + DenseMatrix<double>& A, DenseVector<double>& b, DenseVector<double>& /*x*/, + const std::vector<DenseMatrix<double>::IDX_T>& vec_knownX_id, + const std::vector<double>& vec_knownX_x); /** * Apply known solutions to a system of linear equations \f$A x = b\f$. @@ -52,8 +51,8 @@ void applyKnownSolution(DenseMatrix<double> &A, DenseVector<double> &b, * @param row_id a known solution entry ID * @param val a known solution */ -void applyKnownSolution(DenseMatrix<double> &A, DenseVector<double> &b, - DenseMatrixIndexType row_id, double val); +void applyKnownSolution(DenseMatrix<double>& A, DenseVector<double>& b, + DenseMatrix<double>::IDX_T row_id, double val); } // MathLib