LinearTerm.
More...
#include <variable.hpp>
LinearTerm.
Definition at line 474 of file variable.hpp.
◆ LinearTerm() [1/3]
gadgetlib2::LinearTerm::LinearTerm |
( |
const Variable & |
v | ) |
|
|
inline |
Definition at line 481 of file variable.hpp.
481 : variable_(v), coeff_(1) {}
◆ LinearTerm() [2/3]
gadgetlib2::LinearTerm::LinearTerm |
( |
const Variable & |
v, |
|
|
const FElem & |
coeff |
|
) |
| |
|
inline |
Definition at line 482 of file variable.hpp.
483 : variable_(v), coeff_(coeff)
◆ LinearTerm() [3/3]
gadgetlib2::LinearTerm::LinearTerm |
( |
const Variable & |
v, |
|
|
long |
n |
|
) |
| |
|
inline |
Definition at line 486 of file variable.hpp.
486 : variable_(v), coeff_(n) {}
◆ asString()
std::string gadgetlib2::LinearTerm::asString |
( |
| ) |
const |
Definition at line 512 of file variable.cpp.
515 return variable_.
name();
516 }
else if (coeff_ == -1) {
518 }
else if (coeff_ == 0) {
522 "%s * %s", coeff_.
asString().c_str(), variable_.
name().c_str());
◆ eval()
Definition at line 526 of file variable.cpp.
528 return FElem(coeff_) *= variable_.
eval(assignment);
◆ fieldtype()
FieldType gadgetlib2::LinearTerm::fieldtype |
( |
| ) |
const |
|
inline |
◆ operator*=()
◆ operator-()
LinearTerm gadgetlib2::LinearTerm::operator- |
( |
| ) |
const |
|
inline |
◆ variable()
Variable gadgetlib2::LinearTerm::variable |
( |
| ) |
const |
|
inline |
◆ GadgetLibAdapter
◆ Monomial
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