|
scran_blocks
Blocking utilities for libscran
|
Average parallel elements across vectors. More...
#include <vector>#include <limits>#include <algorithm>#include <cmath>#include <numeric>#include <cstddef>#include "sanisizer/sanisizer.hpp"#include "utils.hpp"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 (const std::size_t n, std::vector< Stat_ * > in, Output_ *const out, const bool skip_nan) |
| template<typename Output_ = double, typename Stat_ > | |
| std::vector< Output_ > | scran_blocks::average_vectors (const std::size_t n, std::vector< Stat_ * > in, const bool skip_nan) |
| template<typename Stat_ , typename Weight_ , typename Output_ > | |
| void | scran_blocks::average_vectors_weighted (const std::size_t n, std::vector< Stat_ * > in, const Weight_ *const w, Output_ *const out, const bool skip_nan) |
| template<typename Output_ = double, typename Stat_ , typename Weight_ > | |
| std::vector< Output_ > | scran_blocks::average_vectors_weighted (const std::size_t n, std::vector< Stat_ * > in, const Weight_ *const w, const bool skip_nan) |
Average parallel elements across vectors.