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

Inner product of two arrays. More...

#include <Shards_SimpleArrayOps.hpp>

List of all members.

Public Types

enum  {
  N = n,
  I = i
}

Public Member Functions

template<typename T >
 InnerProduct (T &value, const T *const x, const T *const y)
 value += sum[ k = 0..N-1 ]( x[k] * y[k] )

Detailed Description

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

Inner product of two arrays.

Template Parameters:
n Number of members to iterate.

Definition at line 157 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