ENH: cmptProduct function, i.e. cmptProduct(vector(a, b, c)) = a*b*c.

This commit is contained in:
graham
2010-11-04 16:47:42 +00:00
parent d99316583b
commit ff473b9833
2 changed files with 16 additions and 1 deletions

View File

@ -27,7 +27,11 @@ int main()
Info<< magSqr(d) << endl;
vector d2(0.5, 0.51, -0.5);
Info<< cmptMax(d2) << " " << cmptSum(d2) << " " << cmptMag(d2) << endl;
Info<< cmptMax(d2) << " "
<< cmptSum(d2) << " "
<< cmptProduct(d2) << " "
<< cmptMag(d2)
<< endl;
Info<< min(d, d2) << endl;
return 0;
}