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

Compute row and column sums from a tatami::Matrix. More...

Go to the source code of this file.

Classes

struct  tatami_stats::SumOptions
 Options for sum(). More...
 

Namespaces

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

Functions

template<typename Value_ , typename Index_ , typename Output_ >
void tatami_stats::sum (bool row, const tatami::Matrix< Value_, Index_ > &mat, Output_ *output, const SumOptions &opt)
 
template<typename Output_ = double, typename Value_ , typename Index_ >
std::vector< Output_ > tatami_stats::sum (bool row, const tatami::Matrix< Value_, Index_ > &mat, const SumOptions &opt)
 

Detailed Description

Compute row and column sums from a tatami::Matrix.