@@ -160,9 +160,9 @@ class hiopHessianLowRank : public hiopMatrix
160
160
// these are matrices from the compact representation; they are updated at each iteration.
161
161
// more exactly Bk=B0-[B0*St' Yt']*[St*B0*St' L]*[St*B0]
162
162
// [ L' -D] [Yt ]
163
- hiopMatrixDense * St_;
164
- hiopMatrixDense * Yt_; // we store the transpose to easily access columns in S and T
165
- hiopMatrixDense * L_; // lower triangular from the compact representation
163
+ hiopMatrixDense* St_;
164
+ hiopMatrixDense* Yt_; // we store the transpose to easily access columns in S and T
165
+ hiopMatrixDense* L_; // lower triangular from the compact representation
166
166
hiopVector* D_; // diag
167
167
// these are matrices from the representation of the inverse
168
168
hiopMatrixDense* V_;
@@ -175,10 +175,10 @@ class hiopHessianLowRank : public hiopMatrix
175
175
void updateL (const hiopVector& STy, const double & sTy );
176
176
void updateD (const double & sTy );
177
177
// also stored are the iterate, gradient obj, and Jacobians at the previous optimization iteration
178
- hiopIterate * it_prev_;
179
- hiopVector * grad_f_prev_;
180
- hiopMatrixDense * Jac_c_prev_;
181
- hiopMatrixDense * Jac_d_prev_;
178
+ hiopIterate* it_prev_;
179
+ hiopVector* grad_f_prev_;
180
+ hiopMatrixDense* Jac_c_prev_;
181
+ hiopMatrixDense* Jac_d_prev_;
182
182
183
183
// internal helpers
184
184
void updateInternalBFGSRepresentation ();
@@ -213,27 +213,27 @@ class hiopHessianLowRank : public hiopMatrix
213
213
inline hiopVector& new_n_vec1 (size_type n)
214
214
{
215
215
#ifdef HIOP_DEEPCHECKS
216
- assert (n_vec1_!= nullptr );
216
+ assert (n_vec1_ != nullptr );
217
217
assert (n_vec1_->get_size ()==n);
218
218
#endif
219
219
return *n_vec1_;
220
220
}
221
221
inline hiopVector& new_n_vec2 (size_type n)
222
222
{
223
223
#ifdef HIOP_DEEPCHECKS
224
- assert (n_vec2_!= nullptr );
224
+ assert (n_vec2_ != nullptr );
225
225
assert (n_vec2_->get_size ()==n);
226
226
#endif
227
227
return *n_vec2_;
228
228
}
229
229
inline hiopVector& new_2l_vec1 (int l) {
230
- if (twol_vec1_!= nullptr && twol_vec1_->get_size ()== 2 * l) {
230
+ if (twol_vec1_ != nullptr && twol_vec1_->get_size () == 2 * l) {
231
231
return *twol_vec1_;
232
232
}
233
- if (twol_vec1_!= nullptr ) {
233
+ if (twol_vec1_ != nullptr ) {
234
234
delete twol_vec1_;
235
235
}
236
- twol_vec1_ = LinearAlgebraFactory::create_vector (nlp_->options ->GetString (" mem_space" ), 2 * l);
236
+ twol_vec1_ = LinearAlgebraFactory::create_vector (nlp_->options ->GetString (" mem_space" ), 2 * l);
237
237
return *twol_vec1_;
238
238
}
239
239
private:
@@ -474,19 +474,20 @@ class hiopHessianInvLowRank_obsolette : public hiopHessianLowRank
474
474
void updateD (const double & sTy );
475
475
private:
476
476
hiopVector* H0_;
477
- hiopMatrixDense * St_;
478
- hiopMatrixDense * Yt_; // we store the transpose to easily access columns in S and T
479
- hiopMatrixDense * R_;
477
+ hiopMatrixDense* St_;
478
+ hiopMatrixDense* Yt_; // we store the transpose to easily access columns in S and T
479
+ hiopMatrixDense* R_;
480
480
hiopVector* D_;
481
481
482
482
int sigma_update_strategy_;
483
483
double sigma_safe_min_;
484
484
double sigma_safe_max_;
485
485
486
486
// also stored are the iterate, gradient obj, and Jacobians at the previous iterations
487
- hiopIterate *it_prev_;
488
- hiopVector *grad_f_prev_;
489
- hiopMatrixDense *Jac_c_prev_, *Jac_d_prev_;
487
+ hiopIterate* it_prev_;
488
+ hiopVector* grad_f_prev_;
489
+ hiopMatrixDense* Jac_c_prev_;
490
+ hiopMatrixDense* Jac_d_prev_;
490
491
491
492
// internals buffers
492
493
double * buff_kxk_; // size = num_constraints^2
@@ -513,15 +514,15 @@ class hiopHessianInvLowRank_obsolette : public hiopHessianLowRank
513
514
inline hiopVector& new_n_vec1 (size_type n)
514
515
{
515
516
#ifdef HIOP_DEEPCHECKS
516
- assert (n_vec1_!= nullptr );
517
+ assert (n_vec1_ != nullptr );
517
518
assert (n_vec1_->get_size ()==n);
518
519
#endif
519
520
return *n_vec1_;
520
521
}
521
522
inline hiopVector& new_n_vec2 (size_type n)
522
523
{
523
524
#ifdef HIOP_DEEPCHECKS
524
- assert (n_vec2_!= nullptr );
525
+ assert (n_vec2_ != nullptr );
525
526
assert (n_vec2_->get_size ()==n);
526
527
#endif
527
528
return *n_vec2_;
0 commit comments