示例#1
0
文件: ufl2gem.py 项目: tj-sun/tsfc
 def abs(self, o, expr):
     if o.ufl_shape:
         indices = tuple(Index() for i in range(len(o.ufl_shape)))
         return ComponentTensor(MathFunction('abs', Indexed(expr, indices)),
                                indices)
     else:
         return MathFunction('abs', expr)
示例#2
0
文件: ufl2gem.py 项目: tj-sun/tsfc
 def bessel_y(self, o, nu, arg):
     return MathFunction(o._name, nu, arg)
示例#3
0
文件: ufl2gem.py 项目: tj-sun/tsfc
 def atan_2(self, o, y, x):
     return MathFunction("atan2", y, x)
示例#4
0
文件: ufl2gem.py 项目: tj-sun/tsfc
 def math_function(self, o, expr):
     return MathFunction(o._name, expr)