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
11// Preserving it here for back-compatibility.
12template<typename Factor_, typename Combined_>
13std::vector<std::vector<Factor_> > combine_factors(const std::size_t n, const std::vector<const Factor_*>& factors, Combined_* const combined) {
14 return factorize::combine_to_factor(n, factors, combined);
15}
16
17template<typename Factor_, typename Number_, typename Combined_>
18std::vector<std::vector<Factor_> > combine_factors_unused(const std::size_t n, const std::vector<std::pair<const Factor_*, Number_> >& factors, Combined_* const combined) {
19 return factorize::combine_to_factor_unused(n, factors, combined);
20}
25}
26
27#endif
Aggregate single-cell expression values.
Definition aggregate_across_cells.hpp:21