Scalar Class Reference
[classes for users]

Object to wrap python numbers for integration into the SLIMpy AST. More...

List of all members.

Public Member Functions

def __init__
def set
def item
def get_data
def get_nodenames
def node_copy
def __str__
def __repr__
def gen_new_scal
def __scalar_operation__
def __add__
def __radd__
def __sub__
def __rsub__
def __div__
def __rdiv__
def __mul__
def __rmul__
def __pow__
def __neg__
def __abs__
def __real__
def __imag__
def conjugate
def __and__
def __or__
def __lt__
def __le__
def __gt__
def __ge__
def __eq__
def __ne__
def __nonzero__

Static Public Attributes

tuple env = InstanceManager( )
tuple data = property( _get_data )
tuple nodenames = property(get_nodenames)
tuple real = property( __real__ )
tuple imag = property( __imag__ )


Detailed Description

Object to wrap python numbers for integration into the SLIMpy AST.

Scalar object represents a number a scalar object does not contain a number until built by the AST

Definition at line 112 of file Scalar.py.


Member Function Documentation

def __init__ (   self,
  val = None 
)

Definition at line 121 of file Scalar.py.

def set (   self,
  val 
)

Definition at line 133 of file Scalar.py.

def item (   self  ) 

Definition at line 143 of file Scalar.py.

def get_data (   self,
  nodename 
)

Definition at line 150 of file Scalar.py.

def get_nodenames (   self  ) 

Definition at line 156 of file Scalar.py.

def node_copy (   self,
  to_node 
)

Definition at line 166 of file Scalar.py.

def __str__ (   self  ) 

Definition at line 169 of file Scalar.py.

def __repr__ (   self  ) 

Definition at line 177 of file Scalar.py.

def gen_new_scal (   self,
  other,
  func 
)

Definition at line 186 of file Scalar.py.

def __scalar_operation__ (   self,
  other,
  func 
)

Definition at line 211 of file Scalar.py.

def __add__ (   self,
  other 
)

Definition at line 221 of file Scalar.py.

def __radd__ (   self,
  other 
)

Definition at line 224 of file Scalar.py.

def __sub__ (   self,
  other 
)

Definition at line 227 of file Scalar.py.

def __rsub__ (   self,
  other 
)

Definition at line 230 of file Scalar.py.

def __div__ (   self,
  other 
)

Definition at line 233 of file Scalar.py.

def __rdiv__ (   self,
  other 
)

Definition at line 236 of file Scalar.py.

def __mul__ (   self,
  other 
)

Definition at line 239 of file Scalar.py.

def __rmul__ (   self,
  other 
)

Definition at line 242 of file Scalar.py.

def __pow__ (   self,
  other 
)

Definition at line 245 of file Scalar.py.

def __neg__ (   self  ) 

Definition at line 248 of file Scalar.py.

def __abs__ (   self  ) 

Definition at line 251 of file Scalar.py.

def __real__ (   self  ) 

Definition at line 254 of file Scalar.py.

def __imag__ (   self  ) 

Definition at line 257 of file Scalar.py.

def conjugate (   self  ) 

Definition at line 260 of file Scalar.py.

def __and__ (   self,
  other 
)

Definition at line 266 of file Scalar.py.

def __or__ (   self,
  other 
)

Definition at line 269 of file Scalar.py.

def __lt__ (   self,
  other 
)

Definition at line 272 of file Scalar.py.

def __le__ (   self,
  other 
)

Definition at line 275 of file Scalar.py.

def __gt__ (   self,
  other 
)

Definition at line 278 of file Scalar.py.

def __ge__ (   self,
  other 
)

Definition at line 281 of file Scalar.py.

def __eq__ (   self,
  other 
)

Definition at line 284 of file Scalar.py.

def __ne__ (   self,
  other 
)

Definition at line 287 of file Scalar.py.

def __nonzero__ (   self  ) 

Definition at line 290 of file Scalar.py.


Member Data Documentation

tuple env = InstanceManager( ) [static]

Definition at line 115 of file Scalar.py.

tuple data = property( _get_data ) [static]

Definition at line 159 of file Scalar.py.

tuple nodenames = property(get_nodenames) [static]

Definition at line 161 of file Scalar.py.

tuple real = property( __real__ ) [static]

Definition at line 263 of file Scalar.py.

tuple imag = property( __imag__ ) [static]

Definition at line 264 of file Scalar.py.


The documentation for this class was generated from the following file:

Generated on Sun Aug 10 09:11:11 2008 for SLIMpy by  doxygen 1.5.6