Skip to content

Commit

Permalink
fix templating in mat_computational_operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Apostolos Chalkis committed Jun 26, 2024
1 parent 035cfe8 commit 9b72f5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/preprocess/mat_computational_operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ initialize_chol(MT const& A_trans, MT const& A)
}
}

template <typename NT, template<typename mat_type> typename Eigen_llt, typename MT, typename VT>
template <typename NT, template<typename...> typename Eigen_llt, typename MT, typename VT>
inline static VT solve_vec(std::unique_ptr<Eigen_llt<MT>> const& llt,
MT const& H, VT const& b)
{
Expand All @@ -82,7 +82,7 @@ inline static VT solve_vec(std::unique_ptr<Eigen_llt<MT>> const& llt,
}
}

template <template<typename mat_type> typename Eigen_llt, typename MT, typename NT>
template <template<typename...> typename Eigen_llt, typename MT, typename NT>
inline static Eigen::Matrix<NT, Eigen::Dynamic, Eigen::Dynamic>
solve_mat(std::unique_ptr<Eigen_llt<MT>> const& llt,
MT const& H, MT const& mat, NT &logdetE)
Expand Down Expand Up @@ -180,7 +180,7 @@ get_mat_prod_op(MT const& E)
}
}

template<typename NT, template<typename number_type> typename SpectraMatProd>
template<typename NT, template<typename...> typename SpectraMatProd>
inline static auto get_eigs_solver(std::unique_ptr<SpectraMatProd<NT>> const& op, int const n)
{
using DenseMatProd = Spectra::DenseSymMatProd<NT>;
Expand Down

0 comments on commit 9b72f5f

Please sign in to comment.