From cbac4d2fb3e8c290354a861bdf3866ea5e5bec8a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 17 Feb 2017 23:34:26 +0800 Subject: Remove the obsolete 'constrained_dbeta.hpp' --- mass_profile/Makefile | 4 +- mass_profile/constrained_dbeta.hpp | 77 -------------------------------------- 2 files changed, 2 insertions(+), 79 deletions(-) delete mode 100644 mass_profile/constrained_dbeta.hpp (limited to 'mass_profile') diff --git a/mass_profile/Makefile b/mass_profile/Makefile index a2067ad..17b7a0e 100644 --- a/mass_profile/Makefile +++ b/mass_profile/Makefile @@ -51,7 +51,7 @@ calc_lx_beta: calc_lx_beta.o beta_cfg.o dump_fit_qdp.o $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -fit_dbeta_sbp.o: fit_dbeta_sbp.cpp constrained_dbeta.hpp $(HEADERS) +fit_dbeta_sbp.o: fit_dbeta_sbp.cpp $(HEADERS) $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) fit_beta_sbp.o: fit_beta_sbp.cpp beta.hpp $(HEADERS) @@ -63,7 +63,7 @@ fit_wang2012_model.o: fit_wang2012_model.cpp wang2012_model.hpp chisq.hpp fit_nfw_mass.o: fit_nfw_mass.cpp nfw.hpp chisq.hpp $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) -calc_lx_dbeta.o: calc_lx_dbeta.cpp constrained_dbeta.hpp $(HEADERS) +calc_lx_dbeta.o: calc_lx_dbeta.cpp $(HEADERS) $(CXX) $(CXXFLAGS) -c $< $(OPT_UTIL_INC) calc_lx_beta.o: calc_lx_beta.cpp beta.hpp $(HEADERS) diff --git a/mass_profile/constrained_dbeta.hpp b/mass_profile/constrained_dbeta.hpp deleted file mode 100644 index 31a4cd4..0000000 --- a/mass_profile/constrained_dbeta.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef CONSTRAINED_DBETA -#define CONSTRAINED_DBETA -#include "projector.hpp" -#include - - -namespace opt_utilities -{ - template - class constrained_dbeta - :public model,std::vector,std::vector > - { - public: - constrained_dbeta() - { - this->push_param_info(param_info,std::string>("n01",1)); - this->push_param_info(param_info,std::string>("beta1",.66)); - this->push_param_info(param_info,std::string>("rc1",100)); - - this->push_param_info(param_info,std::string>("n02",1)); - this->push_param_info(param_info,std::string>("beta2",.67)); - this->push_param_info(param_info,std::string>("rc2",110)); - } - - public: - constrained_dbeta* do_clone()const - { - return new constrained_dbeta(*this); - } - - std::vector do_eval(const std::vector & x, const std::vector& p) - { - T n01=std::abs(p[0]); - T beta1=p[1]; - T rc1=p[2]; - - T n02=std::abs(p[3]); - T beta2=p[4]; - T rc2=p[5]; - - std::vector result(x.size()-1); - for(int i=1;i& p)const - { - if(p.size()!=6) - { - std::cerr<get_num_params()<rc1) - { - return true; - } - else - { - std::cerr<