Public Member Functions | |
def | __init__ (self, index, matrix) |
Public Attributes | |
index | |
matrix | |
A factor is a part of a linear constraint corresponding either a cost ||A x - b|| or a constraint Cx = d. In both cases, we have Ax = sum A_i x_i, where some A_i are null. One object of class Factor stores one of the A_i, along with the correspond <i> index. It is simply a pair (index, matrix). This class is used as a arguments of some of the setup functions of FactorGraph.