shards Version of the Day
shards::InnerProduct< n, i > Struct Template Reference

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:
nNumber of members to iterate.

Definition at line 179 of file Shards_SimpleArrayOps.hpp.


The documentation for this struct was generated from the following file:
 All Classes Functions Variables Typedefs Enumerator