39 template<
class ListType1,
class ListType2>
42 typename ListType1::value_type,
43 typename ListType2::value_type
53 typename ListType1::value_type,
54 typename ListType2::value_type
59 returnType SumProd = f1[0]*f2[0];
60 for (
label i = 1; i < f1.size(); ++i)
62 SumProd += f1[i]*f2[i];
Various functions to operate on Lists.
static outerProduct< typename ListType1::value_type, typename ListType2::value_type >::type weightedSum(const ListType1 &f1, const ListType2 &f2)
Weighted sum helper method.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.