shards::Sum< n, i > Struct Template Reference
[Simple Compile-time Sized Array Operations]

Sum into an array. More...

#include <Shards_SimpleArrayOps.hpp>

List of all members.

Public Types

enum  {
  N = n,
  I = i

Public Member Functions

template<typename T >
 Sum (T *const dst, const T *const src)
 dst[0..N-1] += src[0..N-1]
template<typename T >
 Sum (T *const dst, const T a, const T *const src)
 dst[0..N-1] += a * src[0..N-1]

Detailed Description

template<unsigned n, unsigned i = 0>
struct shards::Sum< n, i >

Sum into an array.

Template Parameters:
n Number of members to sum.

Definition at line 63 of file Shards_SimpleArrayOps.hpp.

The documentation for this struct was generated from the following file:
Generated on Wed Mar 31 15:02:54 2010 for shards by  doxygen 1.6.3