diff options
Diffstat (limited to 'hwpfilter/source/solver.h')
-rw-r--r-- | hwpfilter/source/solver.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hwpfilter/source/solver.h b/hwpfilter/source/solver.h index ea3295bad9d4..0da10ac72ae8 100644 --- a/hwpfilter/source/solver.h +++ b/hwpfilter/source/solver.h @@ -23,11 +23,10 @@ class mgcLinearSystemD { public: - static double** NewMatrix (int N); - static void DeleteMatrix (int N, double** A); + static std::unique_ptr<std::unique_ptr<double[]>[]> NewMatrix (int N); static double* NewVector (int N); - static bool Solve (int N, double** A, double* b); + static bool Solve (int N, std::unique_ptr<std::unique_ptr<double[]>[]>& A, double* b); // Input: // A[N][N] coefficient matrix, entries are A[row][col] // b[N] vector, entries are b[row] |