예제 #1
0
##            if re.match("#include <nt2/toolbox/boost_math/include.hpp>",l) :
##               s[i] = "#include <nt2/toolbox/boost_math/"+self.get_fct_name()+".hpp>"
##            if re.match("#include <nt2/toolbox/boost_math/"+self.get_fct_name()+".hpp>",l) :
##               s[i] = "#include <boost_math/"+self.get_fct_name()+".hpp>"
##            if re.match("#include <boost_math/"+self.get_fct_name()+".hpp>",l) :
##               s[i] = "#include <boost/math/special_functions/"+self.get_fct_name()+".hpp>"
              
##            if re.match(" *NT2_FUNCTION_IMPLEMENTATION\(",l) :
##                if re.match(" *}",s[i-1]) :
##                    t = s[i-1]
##                    s[i-1] = "  "+s[i]
##                    s[i] = t
##                    break
##        self.__write_def_txt(s)         
##        return s
         
    

for tb in tb_targets :
    tbi = Toolbox_infos(tb)
    isa = 'scalar'
    if tbi.get_tb_style() =='usr' :
        print tb
        for fct in tbi.get_fctors_list() :
            bf = Boost_math_fct(tb,fct,isa)
            bf.change_units()
            



예제 #2
0
    "exponential",
    "euler",
    "elliptic",
    "ast",
    "combinatorial",
    "cephes",
    "standard",
    "arithmetic",
    "crlibm"
]



for tb in tb_targets :
    tbi = Toolbox_infos(tb)
    isas = tbi.nbi.get_implanted_archis()
    if tbi.get_tb_style() =='sys' :
        print tb
        for isa in isas :
            if isa != 'scalar' :
                print isa
                for fct in tbi.get_fctors_list() :
                    for sub in tbi.nbi.get_archis().submodes(isa) :
                        fi = Fctor_infos(tb,fct,isa,sub)
                        print "%s\n" % os.path.join(isa,sub,fct+'.hpp')
                        mf = Mk_fctor(fi)
                        mf.revert_to_old_fctor()
                        print "="*50