scran_aggregate
Aggregate expression values across cells
Loading...
Searching...
No Matches
combine_factors.hpp
1#ifndef SCRAN_AGGREGATE_COMBINE_FACTORS_HPP
2#define SCRAN_AGGREGATE_COMBINE_FACTORS_HPP
3
4#include "factorize/factorize.hpp"
5
6namespace scran_aggregate {
7
8// Preserving it here for back-compatibility.
9template<typename Factor_, typename Combined_>
10std::vector<std::vector<Factor_> > combine_factors(const std::size_t n, const std::vector<const Factor_*>& factors, Combined_* const combined) {
11 return factorize::combine_to_factor(n, factors, combined);
12}
13
14template<typename Factor_, typename Number_, typename Combined_>
15std::vector<std::vector<Factor_> > combine_factors_unused(const std::size_t n, const std::vector<std::pair<const Factor_*, Number_> >& factors, Combined_* const combined) {
16 return factorize::combine_to_factor_unused(n, factors, combined);
17}
18
19}
20
21#endif
Aggregate single-cell expression values.
Definition aggregate_across_cells.hpp:20