|
|
__abs__(self)
Returns a Symbol representing the absolute value of the object. |
|
|
|
DependendSymbol
|
__add__(self,
other)
Adds another object to this object. |
|
|
|
DependendSymbol
|
__div__(self,
other)
Divides this object by another object. |
|
|
|
DependendSymbol
|
__getitem__(self,
index)
Returns the slice defined by index. |
|
|
|
|
__init__(self,
shape=(),
args=[],
dim=None)
Creates an instance of a symbol of a given shape. |
|
|
|
DependendSymbol or 0 if other is identical to zero.
|
__mul__(self,
other)
Multiplies this object with another object. |
|
|
|
DependendSymbol
|
|
|
DependendSymbol
|
|
|
DependendSymbol or 1 if other is identical to zero
|
__pow__(self,
other)
Raises this object to the power of other. |
|
|
|
DependendSymbol
|
__radd__(self,
other)
Adds this object to another object. |
|
|
|
DependendSymbol or 0 if other is identical to zero
|
__rdiv__(self,
other)
Divides another object by this object. |
|
|
|
DependendSymbol or 0 if other is identical to zero
|
__rmul__(self,
other)
Multiplies another object by this object. |
|
|
|
DependendSymbol or 0 if other is identical to zero
|
__rpow__(self,
other)
Raises an object to the power of this object. |
|
|
|
DependendSymbol
|
__rsub__(self,
other)
Subtracts this object from another object. |
|
|
|
|
| __rtruediv__(self,
other) |
|
|
|
str
|
__str__(self)
Returns a string representation of the symbol. |
|
|
|
DependendSymbol
|
__sub__(self,
other)
Subtracts another object from this object. |
|
|
|
|
|
|
typically escript.Symbol but other types such as float,
escript.Data, numpy.ndarray are possible
|
diff(self,
arg)
Returns the derivative of the symbol with respect to Symbol arg. |
|
|
|
a single object or a list of objects
|
getArgument(self,
i=None)
Returns the i-th argument of the symbol. |
|
|
|
list of objects
|
|
|
int if the dimension is defined, None otherwise
|
getDim(self)
Returns the spatial dimension. |
|
|
|
str
|
getMyCode(self,
argstrs,
format='escript')
Returns program code that can be used to evaluate the symbol. |
|
|
|
int
|
getRank(self)
Returns the rank of the symbol. |
|
|
|
tuple of int
|
getShape(self)
Returns the shape of the symbol. |
|
|
|
list of objects
|
getSubstitutedArguments(self,
argvals)
Substitutes symbols in the arguments of this object and returns the
result as a list. |
|
|
|
bool
|
isAppropriateValue(self,
arg)
Checks if the given argument arg can be used as a substitution for
this object. |
|
|
|
escript.Symbol, float, escript.Data, numpy.ndarray
depending on the degree of substitution
|
substitute(self,
argvals)
Assigns new values to symbols in the definition of the symbol. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|