zetastitcher.gaussian_stitcher.qp.mapper module

class zetastitcher.gaussian_stitcher.qp.mapper.Expression(factory, term2coeff=None)

Bases: object

Methods

add_dotprod

add_quad

add_term

one

order

zero

add_dotprod(x, z)
add_quad(vars_v, coeff_mat, vars_w)
add_term(term, coeff)
one()
order()
zero()
class zetastitcher.gaussian_stitcher.qp.mapper.QPBuilder(dtype)

Bases: object

Methods

Ab_matrices

Gh_matrices

Qp_matrices

add_variable

build

lin_constr2arrays

new_equality

new_inequality

new_objective

new_variable

new_vector

print_

var2idx

variables

Ab_matrices(variables, var2idx)
Gh_matrices(variables, var2idx)
Qp_matrices(variables, var2idx)
add_variable(v)
build()
lin_constr2arrays(constr_list, variables, var2idx)
new_equality()
new_inequality()
new_objective()
new_variable(name)
new_vector(name, ndims)
print_()
var2idx()
variables()
class zetastitcher.gaussian_stitcher.qp.mapper.SolverMatrices(P, q, G, h, A, b)

Bases: tuple

Attributes
A

Alias for field number 4

G

Alias for field number 2

P

Alias for field number 0

b

Alias for field number 5

h

Alias for field number 3

q

Alias for field number 1

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

A

Alias for field number 4

G

Alias for field number 2

P

Alias for field number 0

b

Alias for field number 5

h

Alias for field number 3

q

Alias for field number 1

class zetastitcher.gaussian_stitcher.qp.mapper.Term(variables)

Bases: object

Methods

order

order()
class zetastitcher.gaussian_stitcher.qp.mapper.Variable(factory, name)

Bases: object

zetastitcher.gaussian_stitcher.qp.mapper.add_sv(d1, d2)