34 template<
class ListType1,
class ListType2>
37 typename ListType1::value_type,
38 typename ListType2::value_type
48 typename ListType1::value_type,
49 typename ListType2::value_type
52 const label len = f1.size();
55 returnType SumProd = f1[0]*f2[0];
56 for (label i = 1; i < len; ++i)
58 SumProd += f1[i]*f2[i];
Traits classes for inner and outer products of primitives.
static outerProduct< typename ListType1::value_type, typename ListType2::value_type >::type weightedSum(const ListType1 &f1, const ListType2 &f2)
Helper: weighted sum.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static constexpr const zero Zero
Global zero (0)