Home | Trees | Indices | Help |
---|
|
object --+ | Symbol --+ | DependendSymbol
DependendSymbol extents Symbol by modifying the == operator to allow two
instances to be equal. Two DependendSymbol
s are equal if
they have the same shape, the same arguments and one of them has an
unspecified spatial dimension or the spatial dimension is identical.
Example:
u1=Symbol(shape=(3,4),dim=2,args=[4.]) u2=Symbol(shape=(3,4),dim=2,args=[4.]) print u1==u2 False
but:
u1=DependendSymbol(shape=(3,4),dim=2,args=[4.]) u2=DependendSymbol(shape=(3,4),dim=2,args=[4.]) u3=DependendSymbol(shape=(2,),dim=2,args=[4.]) print u1==u2, u1==u3 True False
Note: DependendSymbol should be used as return value of functions with Symbol arguments. This will allow the optimizer to remove redundant function calls.
|
|||
bool
|
|
||
bool
|
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
Checks if
|
Checks if
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Aug 10 10:04:39 2009 | http://epydoc.sourceforge.net |