ENH: correct sumProd return type (#1086)

- previously returned scalar, but now return pTraits cmptType
  which is the same as scalarProduct / outerProduct type.
This commit is contained in:
mattijs
2019-02-10 14:31:35 +00:00
committed by Andrew Heather
parent aab644a3fc
commit 7945ca739c
7 changed files with 62 additions and 17 deletions

View File

@ -97,6 +97,7 @@ int main(int argc, char *argv[])
c.Im() *= 5;
}
Info<< "sumProd: " << sumProd(fld1, fld2) << nl;
fld1 *= 10;
Info<< "scalar multiply: " << flatOutput(fld1) << nl;