MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Expr

Function Expr

python/__expr.py:5–11  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

3###############################################
4
5def Expr(a):
6 if isinstance(a, BaseExpr):
7 return a
8 try:
9 return a.expr
10 except:
11 raise TypeError('cannot convert ' + str(type(a)) + ' to expression')
12
13def expr_add(a,b):
14 return Expr(a) + Expr(b)

Callers 13

expr_addFunction · 0.70
expr_subFunction · 0.70
expr_negFunction · 0.70
expr_mulFunction · 0.70
expr_rmulFunction · 0.70
expr_dataFunction · 0.70
__add__Method · 0.70
__sub__Method · 0.70
__mul__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70
SetSliceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected