28#ifndef PolynomialCoefficient_h
29#define PolynomialCoefficient_h
93 std::vector<int> spaceOut);
std::ostream & operator<<(std::ostream &out, const Mesh::Iterator &it)
Output iterator to a std ostream object.
PolynomialCoefficient represents a coefficient in a multi-dimensional polynomial.
bool HasInVariable(int var) const
Return true if var is in inVariables.
PolynomialCoefficient(const PolynomialCoefficient &pc)
Copy constructor.
void SpaceTransform(std::vector< int > spaceIn, std::vector< int > spaceOut)
Transform coefficient from subspace space_in to subspace space_out, both subspaces of some larger spa...
std::vector< int > InVariables(std::vector< int > inVar)
Set the vector of input variables, indexed by vector.
int OutVariable(int outVar)
Set the output variable.
double Coefficient() const
Return the coefficient value.
std::vector< int > _inVarByVec
PolynomialCoefficient(std::vector< int > inVariablesByVector, int outVariable, double coefficient)
Construct the coefficient.
int OutVariable() const
Return the output variable.
double Coefficient(double coeff)
Set the coefficient.
std::vector< int > InVariables() const
Return the vector of input variables, indexed by vector.