D | linear_operator_addition.py | 129 op1 = ops_to_try_at_this_tier.pop() 130 op2, adder = _pop_a_match_at_tier(op1, ops_to_try_at_this_tier, tier) 133 new_operator = adder.add(op1, op2, operator_name) 136 ops_to_try_at_next_tier.append(op1) 141 def _pop_a_match_at_tier(op1, operator_list, tier): argument 147 if adder.can_add(op1, op2): 152 def _infer_hints_allowing_override(op1, op2, hints): argument 171 is_self_adjoint = op1.is_self_adjoint and op2.is_self_adjoint 177 is_positive_definite = op1.is_positive_definite and op2.is_positive_definite 256 def can_add(self, op1, op2): argument [all …]
|