Structure Class Reference

Structure class SLIMpy is set up such that there is a hierarchy of + Structure |--+ Graph |--+ Container | |--+ Data. More...

Inheritance diagram for Structure:

NewLinop linearop_r VectorSpace fft_user

List of all members.

Public Member Functions

def generate_command
 return a new slimpy_base.Command.command instance
def apply_command
def testCommand
 Returns the resulting space from applying a command.
def generateNewWithSpace
 Generate a new Structure instance (note: that the new instance will be the current subclass) Also see: genData.
def generateNew
 Generate a new Structure instance (note: that the new instance will be the current subclass) Also see: genData.
def genData
 Same as generateNew.
def AppendToGraph
 Append to the current graph in the keystone Class.
def scalar_reduction
 generate a Scalar from a command
def genScalar
 generate a Scalar from a command
def source_or_num
 struc.source_or_num( obj ) -> result returns a source if obj is a SLIMpy scalar, or returns obj if obj is a number
def flush
def dependant
 prints a dependency table for container
def addBreakPoint
 add a breakpoint in the graph container will always be build, even if it breaks a pipe
def __nonzero__
 always true
def __repr__

Static Public Attributes

string name = "Sructure"
tuple env = InstanceManager()


Detailed Description

Structure class SLIMpy is set up such that there is a hierarchy of + Structure |--+ Graph |--+ Container | |--+ Data.

This is because we need the abstraction at each level The container provides a constant interface for each type of data for the structure to use. The structure knows about the standard container interface and Graph and interfaces the two. structure is designed to be the super class for all of the SLIMpy concrete data class (e.g., Vector, Linear Operator, Array, ...)

Definition at line 52 of file Structure.py.


Member Function Documentation

def generate_command (   cls,
  cmnd,
  args,
  kargs 
)

return a new slimpy_base.Command.command instance

Definition at line 63 of file Structure.py.

def apply_command (   cls,
  structure,
  command 
)

Definition at line 78 of file Structure.py.

def testCommand (   cls,
  space,
  cmnd_tag,
  args,
  kargs 
)

Returns the resulting space from applying a command.

Definition at line 96 of file Structure.py.

def generateNewWithSpace (   cls,
  data,
  space,
  cmd,
  args,
  kargs 
)

Generate a new Structure instance (note: that the new instance will be the current subclass) Also see: genData.

Definition at line 110 of file Structure.py.

def generateNew (   cls,
  data,
  cmd_tag,
  args,
  kargs 
)

Generate a new Structure instance (note: that the new instance will be the current subclass) Also see: genData.

Definition at line 132 of file Structure.py.

def genData (   cls,
  data,
  cmd,
  args,
  kargs 
)

Same as generateNew.

However genData returns a dataContainer instance

Definition at line 148 of file Structure.py.

def AppendToGraph (   cls,
  container1,
  cmnd,
  container2 
)

Append to the current graph in the keystone Class.

Definition at line 159 of file Structure.py.

def scalar_reduction (   cls,
  container,
  tag,
  args,
  kargs 
)

generate a Scalar from a command

Definition at line 200 of file Structure.py.

def genScalar (   cls,
  container,
  tag,
  args,
  kargs 
)

generate a Scalar from a command

Definition at line 225 of file Structure.py.

def source_or_num (   cls,
  obj 
)

struc.source_or_num( obj ) -> result returns a source if obj is a SLIMpy scalar, or returns obj if obj is a number

Definition at line 235 of file Structure.py.

def flush (   cls,
  data 
)

Definition at line 244 of file Structure.py.

def dependant (   cls,
  container 
)

prints a dependency table for container

Definition at line 254 of file Structure.py.

def addBreakPoint (   cls,
  container 
)

add a breakpoint in the graph container will always be build, even if it breaks a pipe

Definition at line 265 of file Structure.py.

def __nonzero__ (   self  ) 

always true

Definition at line 273 of file Structure.py.

def __repr__ (   self  ) 

Definition at line 276 of file Structure.py.


Member Data Documentation

string name = "Sructure" [static]

Reimplemented in NewLinop, and linearop_r.

Definition at line 54 of file Structure.py.

tuple env = InstanceManager() [static]

Definition at line 56 of file Structure.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