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
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