28 : fixedParameters_(parameterValues), actualParameters_(parameterValues),
29 fixParameters_(
std::move(fixParameters)) {
36 "fixedParameters_.size()!=parametersFreedoms_.size()");
46 "parameterValues.size()!=numberOfFreeParameters");
57 "parameters.size()!=parametersFreedoms_.size()");
62 projectedParameters[i++] = parameters[j];
63 return projectedParameters;
70 "projectedParameters.size()!=numberOfFreeParameters");
73 for (
Size j = 0; j <
y.size(); j++)
75 y[j] = projectedParameters[i++];
1-D array used in linear algebra.
Size size() const
dimension of the array
const Array fixedParameters_
virtual Array include(const Array &projectedParameters) const
returns whole set of parameters corresponding to the set
Size numberOfFreeParameters_
std::vector< bool > fixParameters_
Projection(const Array ¶meterValues, std::vector< bool > fixParameters=std::vector< bool >())
virtual Array project(const Array ¶meters) const
returns the subset of free parameters corresponding
void mapFreeParameters(const Array ¶meterValues) const
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
std::size_t Size
size of a container