示例#1
0
    def __init__(self, rule_mapping_context, diff_context, diff_inames,
            allowed_nonsmoothness=None):
        RuleAwareIdentityMapper.__init__(self, rule_mapping_context)
        DifferentiationMapper.__init__(
                self,

                # This is actually ignored because we
                # override map_variable below.
                variable=None,

                allowed_nonsmoothness=None)
        self.diff_context = diff_context
        self.diff_inames = diff_inames
        self.diff_iname_exprs = tuple(var(diname) for diname in diff_inames)
        self.function_map = func_map
示例#2
0
文件: diff.py 项目: navjotk/loopy
 def __init__(self, rule_mapping_context, diff_context, diff_inames):
     RuleAwareIdentityMapper.__init__(self, rule_mapping_context)
     self.diff_context = diff_context
     self.diff_inames = diff_inames
     self.diff_iname_exprs = tuple(var(diname) for diname in diff_inames)
     self.function_map = func_map
示例#3
0
 def __init__(self, rule_mapping_context, diff_context, diff_inames):
     RuleAwareIdentityMapper.__init__(self, rule_mapping_context)
     self.diff_context = diff_context
     self.diff_inames = diff_inames
     self.diff_iname_exprs = tuple(var(diname) for diname in diff_inames)
     self.function_map = func_map