1#ifndef VECTOR_TO_POINTERS
2#define VECTOR_TO_POINTERS
27 std::vector<T*> output(input.size());
28 auto oIt = output.begin();
29 for (
auto& i : input) {
46 std::vector<const T*> output(input.size());
47 auto oIt = output.begin();
48 for (
auto& i : input) {
64std::vector<std::vector<T*> >
vector_to_pointers(std::vector<std::vector<std::vector<T> > >& input) {
65 std::vector<std::vector<T*> > output;
66 output.reserve(input.size());
67 for (
auto& current : input) {
80std::vector<T*> vector_to_front_pointers(std::vector<std::vector<std::vector<T> > >& input) {
82 ptrs.reserve(input.size());
83 for (
auto& current : input) {
84 ptrs.push_back(current.front().data());
Set common macros used through libscran.
Functions for single-cell RNA-seq analyses.
Definition AggregateAcrossCells.hpp:18
std::vector< T * > vector_to_pointers(std::vector< std::vector< T > > &input)
Definition vector_to_pointers.hpp:26