From e42b15208f7c360f18fd57606ab8a59d179f1b20 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 17 May 2024 15:40:31 +0200 Subject: [PATCH] Follow changes made in swift-cmake-examples --- Solver_interface/include/CGAL/Accelerate_sparse_matrix.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Solver_interface/include/CGAL/Accelerate_sparse_matrix.h b/Solver_interface/include/CGAL/Accelerate_sparse_matrix.h index 055912419d1a..6e46dca1f4c4 100644 --- a/Solver_interface/include/CGAL/Accelerate_sparse_matrix.h +++ b/Solver_interface/include/CGAL/Accelerate_sparse_matrix.h @@ -35,7 +35,7 @@ that represents general matrices, be they symmetric or not. \sa `CGAL::Accelerate_sparse_symmetric_matrix` */ template -struct Accelerate_sparse_matrix +class Accelerate_sparse_matrix { // Public types public: @@ -194,7 +194,7 @@ struct Accelerate_sparse_matrix values.push_back(val); } } - m_matrix = SwiftAccelerate::Matrix::init(m_rows, rows, columns, values); + m_matrix.initialize(m_rows, rows, columns, values); m_is_already_built = true; m_has_been_changed = false; } @@ -204,7 +204,9 @@ struct Accelerate_sparse_matrix void solve(const Accelerate_vector& B, Accelerate_vector& X) const { - m_matrix.solve(B.data(), X.data()); + Accelerate_vector& ncB = const_cast&>(B); + Accelerate_vector& ncX = const_cast&>(X); + m_matrix.solve(ncB.data(), ncX.data()); } /// \cond SKIP_IN_MANUAL