Merged in feature/fixRegularHessianFactor (pull request #93)

Remove warning from RegularHessianFactor
release/4.3a0
Frank Dellaert 2015-02-10 16:40:44 +01:00
commit a72e450fbf
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ public:
typedef Eigen::Matrix<double, D, 1> DVector;
mutable std::vector<DVector> y;
/** y += alpha * A'*A*x */
void multiplyHessianAdd(double alpha, const VectorValues& x, VectorValues& y) const{
throw std::runtime_error(
"RegularHessianFactor::forbidden use of multiplyHessianAdd without raw memory access, use HessianFactor instead");
}
/** y += alpha * A'*A*x */
void multiplyHessianAdd(double alpha, const double* x, double* yvalues) const {
// Create a vector of temporary y values, corresponding to rows i