GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
Utilities::SUMMER< T > Class Template Reference

class for adding large amounts of numbers with less error than the simple sum More...

#include <utilities_slsim.h>

Public Member Functions

 SUMMER (size_t batchsize)
 
void operator+= (T x)
 add another number
 
operator* ()
 returns the current total
 
void reset ()
 reset to start over, frees memory
 
size_t total_number ()
 returns the number of numbers that have been added
 

Detailed Description

template<typename T>
class Utilities::SUMMER< T >

class for adding large amounts of numbers with less error than the simple sum


The documentation for this class was generated from the following file: