Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
prj- committed Aug 3, 2024
1 parent c97e6ca commit abc260f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ template <typename CoordinatePrecision>
class RjasanowSteinbach final : public VirtualAdmissibilityCondition<CoordinatePrecision> {
public:
bool ComputeAdmissibility(const Cluster<CoordinatePrecision> &target, const Cluster<CoordinatePrecision> &source, double eta) const override {
bool admissible = 2 * std::min(target.get_radius(), source.get_radius()) < eta * std::max((norm2(target.get_center() - source.get_center()) - target.get_radius() - source.get_radius()), 0.);
bool admissible = 2 * std::min(target.get_radius(), source.get_radius()) < eta * std::max((norm2(target.get_center() - source.get_center()) - target.get_radius() - source.get_radius()), CoordinatePrecision());
return admissible;
}
};
Expand Down
2 changes: 1 addition & 1 deletion include/htool/hmatrix/lrmat/sympartialACA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class sympartialACA final : public VirtualLowRankGenerator<CoefficientPrecision,
// otherwise, we use the required rank for the stopping criterion (!: at the end the rank could be lower)
using VirtualLowRankGenerator<CoefficientPrecision, CoordinatePrecision>::VirtualLowRankGenerator;

void copy_low_rank_approximation(const VirtualGenerator<CoefficientPrecision> &A, const Cluster<CoordinatePrecision> &t, const Cluster<CoordinatePrecision> &s, double epsilon, int &rank, Matrix<CoefficientPrecision> &U, Matrix<CoefficientPrecision> &V) const {
void copy_low_rank_approximation(const VirtualGenerator<CoefficientPrecision> &A, const Cluster<CoordinatePrecision> &t, const Cluster<CoordinatePrecision> &s, underlying_type<CoefficientPrecision> epsilon, int &rank, Matrix<CoefficientPrecision> &U, Matrix<CoefficientPrecision> &V) const {

int n1, n2;
int i1;
Expand Down

0 comments on commit abc260f

Please sign in to comment.