24602abe9b89c6b22f77804636de2f109f1c6052,sympy/stats/symbolic_multivariate_probability.py,ExpectationMatrix,expand,#ExpectationMatrix#,66
Before Change
return expr
if isinstance(expr, Add):
return Add(* [Expectation(a, condition=condition).expand() for a in expr.args])
elif isinstance(expr, (Mul, MatMul)):
if isinstance(_expand(expr), Add):
return Expectation(_expand(expr)).expand()
After Change
expand_expr = _expand(expr)
if isinstance(expand_expr, Add):
return Add.fromiter(Expectation(a, condition=condition).expand()
for a in expand_expr.args)
elif isinstance(expr, (Mul, MatMul)):
rv = []
nonrv = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: sympy/sympy
Commit Name: 24602abe9b89c6b22f77804636de2f109f1c6052
Time: 2020-07-04
Author: smitlunagariya.mat18@itbhu.ac.in
File Name: sympy/stats/symbolic_multivariate_probability.py
Class Name: ExpectationMatrix
Method Name: expand
Project Name: sympy/sympy
Commit Name: 24602abe9b89c6b22f77804636de2f109f1c6052
Time: 2020-07-04
Author: smitlunagariya.mat18@itbhu.ac.in
File Name: sympy/stats/symbolic_probability.py
Class Name: Expectation
Method Name: expand
Project Name: etal/cnvkit
Commit Name: db6ba6b84fffc1affc51029adb70f02b263b66ac
Time: 2018-06-11
Author: eric.talevich@gmail.com
File Name: cnvlib/segmetrics.py
Class Name:
Method Name: do_segmetrics