Function fuse_constraints::detail::marginalizeNext

Function Documentation

LinearTerm fuse_constraints::detail::marginalizeNext(const std::vector<LinearTerm> &linear_terms)

Marginalize out the lowest-ordered variable from the provided set of linear terms.

A linear marginal term is returned. This represents the information on the remaining variables after marginalizing out the lowest-ordered variable.

Parameters:

linear_terms[in] The set of LinearTerms that are connected to the lowest-ordered variable index

Returns:

A LinearTerm object containing the information on the remaining variables