LinearCombination.
More...
#include <variable.hpp>
◆ size_type
◆ LinearCombination() [1/5]
gadgetlib2::LinearCombination::LinearCombination |
( |
| ) |
|
|
inline |
◆ LinearCombination() [2/5]
gadgetlib2::LinearCombination::LinearCombination |
( |
const Variable & |
var | ) |
|
|
inline |
◆ LinearCombination() [3/5]
gadgetlib2::LinearCombination::LinearCombination |
( |
const LinearTerm & |
linTerm | ) |
|
|
inline |
◆ LinearCombination() [4/5]
gadgetlib2::LinearCombination::LinearCombination |
( |
long |
i | ) |
|
|
inline |
◆ LinearCombination() [5/5]
gadgetlib2::LinearCombination::LinearCombination |
( |
const FElem & |
elem | ) |
|
|
inline |
◆ asString()
std::string gadgetlib2::LinearCombination::asString |
( |
| ) |
const |
Definition at line 581 of file variable.cpp.
584 ::std::string retval;
589 retval += it->asString();
592 retval +=
" + " + it->asString();
◆ eval()
Definition at line 572 of file variable.cpp.
576 evaluation += lt.eval(assignment);
◆ getUsedVariables()
const Variable::set gadgetlib2::LinearCombination::getUsedVariables |
( |
| ) |
const |
Definition at line 603 of file variable.cpp.
607 retSet.insert(lt.variable());
◆ operator*=()
◆ operator+=()
Definition at line 544 of file variable.cpp.
548 other.linearTerms_.cbegin(),
549 other.linearTerms_.cend());
◆ operator-=()
Definition at line 554 of file variable.cpp.
556 for (
const LinearTerm < : other.linearTerms_) {
◆ GadgetLibAdapter
◆ Polynomial
◆ constant_
FElem gadgetlib2::LinearCombination::constant_ |
|
protected |
◆ linearTerms_
::std::vector<LinearTerm> gadgetlib2::LinearCombination::linearTerms_ |
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/libsnark/libsnark/libsnark/gadgetlib2/variable.hpp
- /home/runner/work/libsnark/libsnark/libsnark/gadgetlib2/variable.cpp