Commit f778d5b7 authored by Mike Kremer's avatar Mike Kremer
Browse files

Testing shit

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@232 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 4d1782c1
......@@ -175,7 +175,7 @@ public:
#endif
for(int i = 0; i < n_unknowns_; ++i) {
_g.coeffRef(i) = grad_p[i];
_g.coeffRef(i) += grad_p[i];
}
}
......@@ -224,7 +224,7 @@ public:
for(int i = 0; i < nz; ++i) {
_H(r_ind[i], c_ind[i]) = val[i];
_H(r_ind[i], c_ind[i]) += val[i];
}
if(constant_hessian()) {
......@@ -259,10 +259,10 @@ public:
for(int i = 0; i < n_unknowns_; ++i) {
for(int j = 0; j <= i; ++j) {
_H(i, j) = h_ptr[i][j];
_H(i, j) += h_ptr[i][j];
if(i != j) {
_H(j, i) = h_ptr[i][j];
_H(j, i) += h_ptr[i][j];
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment