1#ifndef SUBSET_VECTOR_HPP
2#define SUBSET_VECTOR_HPP
26template<
bool retain,
class Vector,
typename Subset>
29 for (
size_t i = 0; i < vec.size(); ++i) {
35 if constexpr(!retain) {
41 for (
size_t i = 0; i < vec.size(); ++i) {
42 if constexpr(retain) {
44 output[counter] = vec[i];
49 output[counter] = vec[i];
Set common macros used through libscran.
Functions for single-cell RNA-seq analyses.
Definition AggregateAcrossCells.hpp:18
Vector subset_vector(const Vector &vec, const Subset *sub)
Definition subset_vector.hpp:27