scran_blocks
Blocking utilities for libscran
Loading...
Searching...
No Matches
Namespaces | Functions
average_vectors.hpp File Reference

Average parallel elements across vectors. More...

#include <vector>
#include <limits>
#include <algorithm>
#include <cmath>
#include <numeric>

Go to the source code of this file.

Namespaces

namespace  scran_blocks
 Blocking utilities for libscran.
 

Functions

template<typename Stat_ , typename Output_ >
void scran_blocks::average_vectors (size_t n, std::vector< Stat_ * > in, Output_ *out, bool skip_nan)
 
template<typename Output_ = double, typename Stat_ >
std::vector< Output_ > scran_blocks::average_vectors (size_t n, std::vector< Stat_ * > in, bool skip_nan)
 
template<typename Stat_ , typename Weight_ , typename Output_ >
void scran_blocks::average_vectors_weighted (size_t n, std::vector< Stat_ * > in, const Weight_ *w, Output_ *out, bool skip_nan)
 
template<typename Output_ = double, typename Stat_ , typename Weight_ >
std::vector< Output_scran_blocks::average_vectors_weighted (size_t n, std::vector< Stat_ * > in, const Weight_ *w, bool skip_nan)
 

Detailed Description

Average parallel elements across vectors.