File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -151,22 +151,22 @@ namespace bayesopt {
151151 vecOfvec getFinalResults ();
152152
153153 /* * Get internal samples. */
154- vecOfvec getX ();
154+ const vecOfvec& getX ();
155155
156156 /* * Get internal values. */
157- vectord getY ();
157+ const vectord& getY ();
158158
159159 /* * Get index of best sample. */
160- size_t getBestIndex ();
160+ const size_t & getBestIndex ();
161161
162162 /* * Get indices of best samples. */
163- vectori getBestIndices ();
163+ const vectori& getBestIndices ();
164164
165165 /* * Get averages for representative data indices. */
166- vectord getValues ();
166+ const vectord& getValues ();
167167
168168 /* * Get numbers for representative data indices. */
169- vectori getNValues ();
169+ const vectori& getNValues ();
170170
171171 /* * Saves the current state of the optimization process into a state class. */
172172 void saveOptimization (BOptState &state);
Original file line number Diff line number Diff line change @@ -233,32 +233,32 @@ namespace bayesopt
233233 return results;
234234 }
235235
236- vecOfvec BayesOptBase::getX ()
236+ const vecOfvec& BayesOptBase::getX ()
237237 {
238238 return mModel ->getData ()->mX ;
239239 }
240240
241- vectord BayesOptBase::getY ()
241+ const vectord& BayesOptBase::getY ()
242242 {
243243 return mModel ->getData ()->mY ;
244244 }
245245
246- size_t BayesOptBase::getBestIndex ()
246+ const size_t & BayesOptBase::getBestIndex ()
247247 {
248248 return mModel ->getData ()->mMinIndex ;
249249 }
250250
251- vectori BayesOptBase::getBestIndices ()
251+ const vectori& BayesOptBase::getBestIndices ()
252252 {
253253 return mModel ->getData ()->indices ;
254254 }
255255
256- vectord BayesOptBase::getValues ()
256+ const vectord& BayesOptBase::getValues ()
257257 {
258258 return mModel ->getData ()->values ;
259259 }
260260
261- vectori BayesOptBase::getNValues ()
261+ const vectori& BayesOptBase::getNValues ()
262262 {
263263 return mModel ->getData ()->nvalues ;
264264 }
You can’t perform that action at this time.
0 commit comments