tatami_stats
Matrix statistics for tatami
Loading...
Searching...
No Matches
group_sum.hpp File Reference

Compute group-wise sums from a tatami::Matrix. More...

Go to the source code of this file.

Classes

struct  tatami_stats::GroupSumOptions
 Options for group_sum(). More...
 

Namespaces

namespace  tatami_stats
 Functions to compute statistics from a tatami::Matrix.
 

Functions

template<typename Value_ , typename Index_ , typename Group_ , typename Output_ >
void tatami_stats::group_sum (bool row, const tatami::Matrix< Value_, Index_ > &mat, const Group_ *group, const std::size_t num_groups, std::vector< Output_ * > &output, const GroupSumOptions &opt)
 
template<typename Output_ = double, typename Value_ , typename Index_ , typename Group_ >
std::vector< std::vector< Output_ > > tatami_stats::group_sum (bool row, const tatami::Matrix< Value_, Index_ > &mat, const Group_ *group, const std::size_t num_groups, const GroupSumOptions &opt)
 

Detailed Description

Compute group-wise sums from a tatami::Matrix.