Skip to content

Commit

Permalink
Ensure custom_allocator is used with unbounded_array_wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] authored and ohhmm committed Sep 17, 2024
1 parent e915df7 commit dded189
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omnn/extrapolator/Extrapolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ using namespace boost::numeric::ublas;
// Replace incorrect allocator functions with correct Boost Ublas container functions

// Ensure that matrix_t, vector_t, and permutation_matrix_t are using unbounded_array_wrapper with custom_allocator
using matrix_t = boost::numeric::ublas::matrix<Valuable, boost::numeric::ublas::basic_row_major<>, unbounded_array_wrapper<Valuable>>;
using vector_t = boost::numeric::ublas::vector<Valuable, unbounded_array_wrapper<Valuable>>;
using permutation_matrix_t = boost::numeric::ublas::permutation_matrix<std::size_t, unbounded_array_wrapper<std::size_t>>;
using matrix_t = boost::numeric::ublas::matrix<Valuable, boost::numeric::ublas::basic_row_major<>, unbounded_array_wrapper<Valuable, custom_allocator<Valuable>>>;
using vector_t = boost::numeric::ublas::vector<Valuable, unbounded_array_wrapper<Valuable, custom_allocator<Valuable>>>;
using permutation_matrix_t = boost::numeric::ublas::permutation_matrix<std::size_t, unbounded_array_wrapper<std::size_t, custom_allocator<std::size_t>>>;

// This function calculates the determinant of a matrix using LU factorization
auto det_fast(matrix_t matrix) {
Expand Down

0 comments on commit dded189

Please sign in to comment.