dot product

release/4.3a0
Frank Dellaert 2009-12-11 21:37:40 +00:00
parent 76b55aba7d
commit bca489384e
1 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,9 @@ Vector ediv(const Vector &a, const Vector &b);
*/
double sum(const Vector &a);
/** Dot product */
inline double dot(const Vector &a, const Vector& b) { return sum(emul(a,b)); }
/**
* house(x,j) computes HouseHolder vector v and scaling factor beta
* from x, such that the corresponding Householder reflection zeroes out