Skip to content

Commit

Permalink
Fix macos builds
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Sep 27, 2023
1 parent 12ab184 commit 9231ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libhictk/balancing/include/hictk/balancing/ice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ class ICE {

template <typename MatrixT>
static void initialize_biases(const MatrixT& matrix, nonstd::span<double> biases,
nonstd::span<const std::size_t> chrom_bin_offsets,
nonstd::span<const std::uint64_t> chrom_bin_offsets,
std::size_t min_nnz, std::size_t min_count, double mad_max,
BS::thread_pool* tpool);

[[nodiscard]] static std::vector<double> compute_weights_from_chromosome_sizes(
const BinTable& bins, nonstd::span<std::size_t> chrom_bin_offsets);
const BinTable& bins, nonstd::span<std::uint64_t> chrom_bin_offsets);
};

} // namespace hictk::balancing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ inline double ICE::compute_ssq_nzmarg(nonstd::span<const double> marg, double av

template <typename MatrixT>
inline void ICE::initialize_biases(const MatrixT& matrix, nonstd::span<double> biases,
nonstd::span<const std::size_t> chrom_bin_offsets,
nonstd::span<const std::uint64_t> chrom_bin_offsets,
std::size_t min_nnz, std::size_t min_count, double mad_max,
BS::thread_pool* tpool) {
if (min_nnz == 0 && min_count == 0 && mad_max == 0) {
Expand Down Expand Up @@ -631,7 +631,7 @@ inline void ICE::initialize_biases(const MatrixT& matrix, nonstd::span<double> b
}

inline std::vector<double> ICE::compute_weights_from_chromosome_sizes(
const BinTable& bins, nonstd::span<std::size_t> chrom_bin_offsets) {
const BinTable& bins, nonstd::span<std::uint64_t> chrom_bin_offsets) {
std::vector<double> weights(bins.size());
for (std::uint32_t i = 1; i < chrom_bin_offsets.size(); ++i) {
const auto& chrom = bins.chromosomes().at(i - 1);
Expand Down

0 comments on commit 9231ea6

Please sign in to comment.