Source code for pyccel.ast.parallel.basic
# coding: utf-8
from sympy.core.basic import Basic as sm_Basic
[docs]class Basic(sm_Basic):
is_integer = False
_dtypes = {}
_dtypes['size'] = 'int'
_dtypes['rank'] = 'int'
def __new__(cls, *args, **options):
return super(Basic, cls).__new__(cls, *args, **options)
[docs] def dtype(self, attr):
"""Returns the datatype of a given attribut/member."""
return self._dtypes[attr]