-  3.39.22
Public Member Functions | Public Attributes | List of all members
pyfaust.factparams.ConstraintList Class Reference

A helper class for constructing a list of consistent pyfaust.proj.proj_gen projectors or ConstraintGeneric objects. More...

Public Member Functions

def __init__ (self, *args)
 
def __len__ (self)
 
def __add__ (self, other)
 Returns the concatenation of two lists (self and other) as a new ConstraintList. More...
 
def __getitem__ (self, ind)
 x.__getitem__(y) <==> x[y] More...
 

Public Attributes

 clist
 

Detailed Description

A helper class for constructing a list of consistent pyfaust.proj.proj_gen projectors or ConstraintGeneric objects.

Note
ConstraintGeneric use is not advised (these objects are not well documented). Use rather the projectors functors (from pyfaust.proj module).

Examples

>>> from pyfaust.factparams import ConstraintList
>>> cons = ConstraintList('splin', 5, 500, 32, 'blockdiag',[(10,10), (32,32)], 32, 32);

Constructor & Destructor Documentation

◆ __init__()

def pyfaust.factparams.ConstraintList.__init__ (   self,
args 
)

Member Function Documentation

◆ __add__()

def pyfaust.factparams.ConstraintList.__add__ (   self,
  other 
)

Returns the concatenation of two lists (self and other) as a new ConstraintList.

Examples

>>> from pyfaust.factparams import *
>>> l1 = ConstraintList('normcol', 1, 32, 32, 'sp', 128, 32, 32, 'sp', 128, 32, 32)
>>> l2 = ConstraintList('sp', 128, 32, 32, 'sp', 128, 32, 32)
>>> l1 + l2 # doctest:+ELLIPSIS

<pyfaust.factparams.ConstraintList object at ...>

◆ __getitem__()

def pyfaust.factparams.ConstraintList.__getitem__ (   self,
  ind 
)

x.__getitem__(y) <==> x[y]

Examples

>>> from pyfaust.factparams import *
>>> cl = ConstraintList('sp', 128, 32, 32, 'sp', 128, 32, 32)
>>> cl[1]
sp(32, 32, 128)

◆ __len__()

def pyfaust.factparams.ConstraintList.__len__ (   self)

Member Data Documentation

◆ clist

pyfaust.factparams.ConstraintList.clist

The documentation for this class was generated from the following file:
pyfaust.factparams
The module for the parameterization of FAuST's algorithms (Palm4MSA and Hierarchical Factorization)....
Definition: factparams.py:1