• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióna744ab4915f0db65383f6fc4ad0f1e8657cd492d (tree)
Tiempo2013-07-25 01:12:21
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

Some methods for opt in Parameters-class are inlined #27279

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1428 1136aad2-a195-0410-b898-f5ea1d11b9d8

Cambiar Resumen

Diferencia incremental

--- a/src/base/Parameters.cpp
+++ b/src/base/Parameters.cpp
@@ -402,71 +402,6 @@ void Parameters::SetSeedNASCO(unsigned long seed){
402402 this->seedNASCO = seed;
403403 }
404404
405-// Optimization
406-OptimizationMethodType Parameters::GetMethodOptimization() const{
407- return this->methodOptimization;
408-}
409-
410-void Parameters::SetMethodOptimization(OptimizationMethodType method){
411- this->methodOptimization = method;
412-}
413-
414-int Parameters::GetTotalStepsOptimization() const{
415- return this->totalStepsOptimization;
416-}
417-
418-void Parameters::SetTotalStepsOptimization(int steps){
419- this->totalStepsOptimization = steps;
420-}
421-
422-int Parameters::GetElectronicStateIndexOptimization() const{
423- return this->electronicStateIndexOptimization;
424-}
425-
426-void Parameters::SetElectronicStateIndexOptimization(int electronicStateIndex){
427- this->electronicStateIndexOptimization = electronicStateIndex;
428-}
429-
430-double Parameters::GetMaxGradientOptimization() const{
431- return this->maxGradientOptimization;
432-}
433-
434-void Parameters::SetMaxGradientOptimization(double maxGradient){
435- this->maxGradientOptimization = maxGradient;
436-}
437-
438-double Parameters::GetRmsGradientOptimization() const{
439- return this->rmsGradientOptimization;
440-}
441-
442-void Parameters::SetRmsGradientOptimization(double rmsGradient){
443- this->rmsGradientOptimization = rmsGradient;
444-}
445-
446-double Parameters::GetInitialTrustRadiusOptimization() const{
447- return this->initialTrustRadiusOptimization;
448-}
449-
450-void Parameters::SetInitialTrustRadiusOptimization(double initialTrustRadius){
451- this->initialTrustRadiusOptimization = initialTrustRadius;
452-}
453-
454-double Parameters::GetMaxNormStepOptimization() const{
455- return this->maxNormStepOptimization;
456-}
457-
458-void Parameters::SetMaxNormStepOptimization(double maxNormStep){
459- this->maxNormStepOptimization = maxNormStep;
460-}
461-
462-double Parameters::GetTimeWidthOptimization() const{
463- return this->timeWidthOptimization;
464-}
465-
466-void Parameters::SetTimeWidthOptimization(double timeWidth){
467- this->timeWidthOptimization = timeWidth;
468-}
469-
470405 // Frequencies
471406 bool Parameters::RequiresFrequencies() const{
472407 return this->requiresFrequencies;
--- a/src/base/Parameters.h
+++ b/src/base/Parameters.h
@@ -191,22 +191,22 @@ public:
191191 double GetTimeWidthNASCO() const;
192192 void SetTimeWidthNASCO(double stepWidth);
193193 // Optimization
194- OptimizationMethodType GetMethodOptimization() const;
195- void SetMethodOptimization(OptimizationMethodType method);
196- int GetTotalStepsOptimization() const;
197- void SetTotalStepsOptimization(int totalSteps);
198- int GetElectronicStateIndexOptimization() const;
199- void SetElectronicStateIndexOptimization(int electronicStateIndex);
200- double GetMaxGradientOptimization() const;
201- void SetMaxGradientOptimization(double maxGradient);
202- double GetRmsGradientOptimization() const;
203- void SetRmsGradientOptimization(double rmsGradient);
204- double GetTimeWidthOptimization() const;
205- void SetTimeWidthOptimization(double timeWidth);
206- double GetInitialTrustRadiusOptimization() const;
207- void SetInitialTrustRadiusOptimization(double initialTrustRadius);
208- double GetMaxNormStepOptimization() const;
209- void SetMaxNormStepOptimization(double maxNormStep);
194+ OptimizationMethodType GetMethodOptimization() const {return this->methodOptimization;}
195+ void SetMethodOptimization(OptimizationMethodType m){this->methodOptimization = m;}
196+ int GetTotalStepsOptimization() const {return this->totalStepsOptimization;}
197+ void SetTotalStepsOptimization(int steps) {this->totalStepsOptimization = steps;}
198+ int GetElectronicStateIndexOptimization() const {return this->electronicStateIndexOptimization;}
199+ void SetElectronicStateIndexOptimization(int i) {this->electronicStateIndexOptimization = i;}
200+ double GetMaxGradientOptimization() const {return this->maxGradientOptimization;}
201+ void SetMaxGradientOptimization(double m) {this->maxGradientOptimization = m;}
202+ double GetRmsGradientOptimization() const {return this->rmsGradientOptimization;}
203+ void SetRmsGradientOptimization(double r) {this->rmsGradientOptimization = r;}
204+ double GetTimeWidthOptimization() const {return this->timeWidthOptimization;}
205+ void SetTimeWidthOptimization(double dt) {this->timeWidthOptimization = dt;}
206+ double GetInitialTrustRadiusOptimization() const {return this->initialTrustRadiusOptimization;}
207+ void SetInitialTrustRadiusOptimization(double r) {this->initialTrustRadiusOptimization = r;}
208+ double GetMaxNormStepOptimization() const {return this->maxNormStepOptimization;}
209+ void SetMaxNormStepOptimization(double n) {this->maxNormStepOptimization = n;}
210210 // Frequencies
211211 bool RequiresFrequencies() const;
212212 void SetRequiresFrequencies(bool requiresFrequencies);