|
shards Version of the Day
|
Inner product of two arrays. More...
#include <Shards_SimpleArrayOps.hpp>
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] ) More... | |
Inner product of two arrays.
| n | Number of members to iterate. |
Definition at line 179 of file Shards_SimpleArrayOps.hpp.
| anonymous enum |
Definition at line 180 of file Shards_SimpleArrayOps.hpp.
|
inline |
value += sum[ k = 0..N-1 ]( x[k] * y[k] )
Definition at line 184 of file Shards_SimpleArrayOps.hpp.
|
inline |
Definition at line 187 of file Shards_SimpleArrayOps.hpp.