npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
sumOfSquares.hh File Reference

A simple code to calculate the sum of squares of elements inside a contiguous buffer. More...

#include <cassert>
#include "npstat/nm/PreciseType.hh"

Go to the source code of this file.

Namespaces

 npstat
 

Functions

template<typename Numeric >
PreciseType< Numeric >::type npstat::sumOfSquares (const Numeric *data, const unsigned long len)
 

Detailed Description

A simple code to calculate the sum of squares of elements inside a contiguous buffer.

Author: I. Volobouev

November 2020