22template<
class SparseMaModelType>
29template<
class SparseMaModelType>
31 markovianStates = model.getMarkovianStates();
32 exitRates = model.getExitRates();
37 for (uint64_t objIndex = 0; objIndex < this->
objectives.size(); ++objIndex) {
38 auto const& formula = *this->
objectives[objIndex].formula;
39 STORM_LOG_THROW(formula.isRewardOperatorFormula() && formula.asRewardOperatorFormula().hasRewardModelName(), storm::exceptions::UnexpectedException,
40 "Unexpected type of operator formula: " << formula <<
".");
41 typename SparseMaModelType::RewardModelType
const& rewModel = model.getRewardModel(formula.asRewardOperatorFormula().getRewardModelName());
42 STORM_LOG_ASSERT(!rewModel.hasTransitionRewards(),
"Preprocessed Reward model has transition rewards which is not expected.");
43 this->
actionRewards[objIndex] = rewModel.hasStateActionRewards()
44 ? rewModel.getStateActionRewardVector()
46 if (formula.getSubformula().isTotalRewardFormula()) {
47 if (rewModel.hasStateRewards()) {
49 for (uint64_t markovianState : markovianStates) {
50 this->
actionRewards[objIndex][model.getTransitionMatrix().getRowGroupIndices()[markovianState]] +=
51 rewModel.getStateReward(markovianState) / exitRates[markovianState];
54 }
else if (formula.getSubformula().isLongRunAverageRewardFormula()) {
56 if (rewModel.hasStateRewards()) {
57 this->
stateRewards[objIndex] = rewModel.getStateRewardVector();
61 formula.getSubformula().asCumulativeRewardFormula().getTimeBoundReference().isTimeBound(),
62 storm::exceptions::UnexpectedException,
"Unexpected type of sub-formula: " << formula.getSubformula() <<
".");
63 STORM_LOG_THROW(!rewModel.hasStateRewards(), storm::exceptions::InvalidPropertyException,
64 "Found state rewards for time bounded objective " << this->objectives[objIndex].originalFormula <<
". This is not supported.");
66 this->
objectives[objIndex].originalFormula->isProbabilityOperatorFormula() &&
67 this->objectives[objIndex].originalFormula->asProbabilityOperatorFormula().getSubformula().isBoundedUntilFormula(),
68 "Objective " << this->objectives[objIndex].originalFormula
69 <<
" was simplified to a cumulative reward formula. Correctness of the algorithm is unknown for this type of property.");
72 STORM_LOG_STATISTICS(
"Final preprocessed model has " << markovianStates.getNumberOfSetBits() <<
" Markovian states.\n");
75template<
class SparseMdpModelType>
82template<
class SparseMdpModelType>
88 result.setOptimizationDirection(storm::solver::OptimizationDirection::Maximize);
92template<
class SparseMaModelType>
97template<
class SparseMaModelType>
107template<
class SparseMaModelType>
112template<
class SparseMaModelType>
113void StandardMaPcaaWeightVectorChecker<SparseMaModelType>::boundedPhase(
Environment const& env, std::vector<ValueType>
const& weightVector,
114 std::vector<ValueType>& weightedRewardVector) {
116 SubModel MS = createSubModel(
true, weightedRewardVector);
117 SubModel PS = createSubModel(
false, weightedRewardVector);
120 ValueType digitizationConstant = getDigitizationConstant(weightVector);
121 digitize(MS, digitizationConstant);
124 TimeBoundMap upperTimeBounds;
125 digitizeTimeBounds(upperTimeBounds, digitizationConstant, weightVector);
132 std::unique_ptr<MinMaxSolverData> minMax = initMinMaxSolver(env, PS, acyclic, weightVector);
136 std::unique_ptr<LinEqSolverData> linEq = initLinEqSolver(env, PS, acyclic);
139 std::vector<uint_fast64_t> optimalChoicesAtCurrentEpoch(PS.getNumberOfStates(), std::numeric_limits<uint_fast64_t>::max());
144 auto upperTimeBoundIt = upperTimeBounds.
begin();
145 uint_fast64_t currentEpoch = upperTimeBounds.empty() ? 0 : upperTimeBoundIt->first;
148 updateDataToCurrentEpoch(MS, PS, *minMax, consideredObjectives, currentEpoch, weightVector, upperTimeBoundIt, upperTimeBounds);
151 performPSStep(env, PS, MS, *minMax, *linEq, optimalChoicesAtCurrentEpoch, consideredObjectives, weightVector);
155 if (currentEpoch > 0) {
156 performMSStep(env, MS, PS, consideredObjectives, weightVector);
167 for (uint_fast64_t objIndex = 0; objIndex < this->objectives.size(); ++objIndex) {
173template<
class SparseMaModelType>
174typename StandardMaPcaaWeightVectorChecker<SparseMaModelType>::SubModel StandardMaPcaaWeightVectorChecker<SparseMaModelType>::createSubModel(
175 bool createMS, std::vector<ValueType>
const& weightedRewardVector)
const {
178 storm::storage::BitVector probabilisticStates = ~markovianStates;
179 result.states = createMS ? markovianStates : probabilisticStates;
180 result.choices = this->transitionMatrix.getRowFilter(result.states);
181 STORM_LOG_ASSERT(!createMS || result.states.getNumberOfSetBits() == result.choices.getNumberOfSetBits(),
182 "Row groups for Markovian states should consist of exactly one row.");
185 result.toMS = this->transitionMatrix.getSubmatrix(
true, result.states, markovianStates, createMS);
186 result.toPS = this->transitionMatrix.getSubmatrix(
true, result.states, probabilisticStates,
false);
187 STORM_LOG_ASSERT(result.getNumberOfStates() == result.states.getNumberOfSetBits() && result.getNumberOfStates() == result.toMS.getRowGroupCount() &&
188 result.getNumberOfStates() == result.toPS.getRowGroupCount(),
189 "Invalid state count for subsystem.");
190 STORM_LOG_ASSERT(result.getNumberOfChoices() == result.choices.getNumberOfSetBits() && result.getNumberOfChoices() == result.toMS.getRowCount() &&
191 result.getNumberOfChoices() == result.toPS.getRowCount(),
192 "Invalid choice count for subsystem.");
194 result.weightedRewardVector.resize(result.getNumberOfChoices());
196 for (uint_fast64_t objIndex = 0; objIndex < this->objectives.size(); ++objIndex) {
197 std::vector<ValueType>
const& objRewards = this->actionRewards[objIndex];
198 std::vector<ValueType> subModelObjRewards;
199 subModelObjRewards.reserve(result.getNumberOfChoices());
200 for (
auto choice : result.choices) {
201 subModelObjRewards.push_back(objRewards[choice]);
203 result.objectiveRewardVectors.push_back(std::move(subModelObjRewards));
206 result.weightedSolutionVector.resize(result.getNumberOfStates());
208 result.objectiveSolutionVectors.resize(this->objectives.size());
209 for (uint_fast64_t objIndex = 0; objIndex < this->objectives.size(); ++objIndex) {
210 result.objectiveSolutionVectors[objIndex].resize(result.weightedSolutionVector.size());
214 result.auxChoiceValues.resize(result.getNumberOfChoices());
219template<
class SparseMaModelType>
220template<typename VT, typename std::enable_if<storm::NumberTraits<VT>::SupportsExponential,
int>::type>
221VT StandardMaPcaaWeightVectorChecker<SparseMaModelType>::getDigitizationConstant(std::vector<ValueType>
const& weightVector)
const {
234 std::vector<VT> timeBounds;
235 std::vector<VT> eToPowerOfMinusMaxRateTimesBound;
237 for (
auto const& obj : this->objectives) {
238 if (obj.formula->getSubformula().isCumulativeRewardFormula()) {
239 timeBounds.push_back(obj.formula->getSubformula().asCumulativeRewardFormula().template getBound<VT>());
241 "Got zero-valued upper time bound. This is not suppoted.");
242 eToPowerOfMinusMaxRateTimesBound.push_back(std::exp(-maxRate * timeBounds.back()));
243 smallestNonZeroBound =
storm::utility::isZero(smallestNonZeroBound) ? timeBounds.back() : std::min(smallestNonZeroBound, timeBounds.back());
258 storm::storage::BitVector objectivesWithTimeBound = ~this->objectivesWithNoUpperTimeBound;
259 uint_fast64_t smallestStepBound = 1;
260 VT delta = smallestNonZeroBound / smallestStepBound;
262 bool deltaValid =
true;
263 for (uint64_t objIndex : objectivesWithTimeBound) {
264 auto const& timeBound = timeBounds[objIndex];
265 if (timeBound / delta != std::floor(timeBound / delta)) {
272 for (uint_fast64_t objIndex = 0; objIndex < this->objectives.size(); ++objIndex) {
274 if (objectivesWithTimeBound.get(objIndex)) {
279 weightedPrecisionForCurrentDelta += weightVector[objIndex] * precisionOfObj;
281 deltaValid &= weightedPrecisionForCurrentDelta <= weightedGoalPrecision;
287 STORM_LOG_ASSERT(delta > smallestNonZeroBound / smallestStepBound,
"Digitization constant is expected to become smaller in every iteration.");
288 delta = smallestNonZeroBound / smallestStepBound;
290 STORM_LOG_DEBUG(
"Found digitization constant: " << delta <<
". At least " << smallestStepBound <<
" digitization steps will be necessarry");
294template<
class SparseMaModelType>
295template<typename VT, typename std::enable_if<!storm::NumberTraits<VT>::SupportsExponential,
int>::type>
296VT StandardMaPcaaWeightVectorChecker<SparseMaModelType>::getDigitizationConstant(std::vector<ValueType>
const& )
const {
297 STORM_LOG_THROW(
false, storm::exceptions::InvalidOperationException,
"Computing bounded probabilities of MAs is unsupported for this value type.");
300template<
class SparseMaModelType>
301template<typename VT, typename std::enable_if<storm::NumberTraits<VT>::SupportsExponential,
int>::type>
302void StandardMaPcaaWeightVectorChecker<SparseMaModelType>::digitize(SubModel& MS, VT
const& digitizationConstant)
const {
303 std::vector<VT> rateVector(MS.getNumberOfChoices());
305 for (uint_fast64_t row = 0; row < rateVector.size(); ++row) {
306 VT
const eToMinusRateTimesDelta = std::exp(-rateVector[row] * digitizationConstant);
307 for (
auto& entry : MS.toMS.getRow(row)) {
309 if (entry.getColumn() == row) {
310 entry.setValue(entry.getValue() + eToMinusRateTimesDelta);
313 for (
auto& entry : MS.toPS.getRow(row)) {
317 for (
auto& objVector : MS.objectiveRewardVectors) {
323template<
class SparseMaModelType>
324template<typename VT, typename std::enable_if<!storm::NumberTraits<VT>::SupportsExponential,
int>::type>
325void StandardMaPcaaWeightVectorChecker<SparseMaModelType>::digitize(SubModel& , VT
const& )
const {
326 STORM_LOG_THROW(
false, storm::exceptions::InvalidOperationException,
"Computing bounded probabilities of MAs is unsupported for this value type.");
329template<
class SparseMaModelType>
330void StandardMaPcaaWeightVectorChecker<SparseMaModelType>::digitizeTimeBounds(TimeBoundMap& upperTimeBounds, ValueType
const& digitizationConstant,
331 std::vector<ValueType>
const& weightVector) {
334 for (
auto objIndex : ~this->objectivesWithNoUpperTimeBound) {
335 auto const& obj = this->objectives[objIndex];
338 if (obj.formula->getSubformula().isCumulativeRewardFormula()) {
339 ValueType timeBound = obj.formula->getSubformula().asCumulativeRewardFormula().template getBound<ValueType>();
341 auto timeBoundIt = upperTimeBounds.insert(std::make_pair(digitizedBound, storm::storage::BitVector(this->objectives.size(),
false))).first;
342 timeBoundIt->second.set(objIndex);
346 errorAwayFromZero += digitizationError;
349 this->offsetsToAchievablePoint[objIndex] = -errorTowardsZero;
350 this->offsetToWeightedSum += weightVector[objIndex] * errorAwayFromZero;
352 this->offsetsToAchievablePoint[objIndex] = errorAwayFromZero;
353 this->offsetToWeightedSum += weightVector[objIndex] * errorTowardsZero;
357 STORM_LOG_THROW(
false, storm::exceptions::InvalidOperationException,
"Computing bounded probabilities of MAs is unsupported for this value type.");
361template<
class SparseMaModelType>
362std::unique_ptr<typename StandardMaPcaaWeightVectorChecker<SparseMaModelType>::MinMaxSolverData>
363StandardMaPcaaWeightVectorChecker<SparseMaModelType>::initMinMaxSolver(Environment
const& env, SubModel
const& PS,
bool acyclic,
364 std::vector<ValueType>
const& weightVector)
const {
365 std::unique_ptr<MinMaxSolverData> result(
new MinMaxSolverData());
366 result->env = std::make_unique<storm::Environment>(env);
369 result->env->solver().minMax().setMethod(storm::solver::MinMaxMethod::Acyclic);
371 storm::solver::GeneralMinMaxLinearEquationSolverFactory<ValueType> minMaxSolverFactory;
372 result->solver = minMaxSolverFactory.
create(*result->env, PS.toPS);
373 result->solver->setHasUniqueSolution(
true);
374 result->solver->setHasNoEndComponents(
true);
375 result->solver->setTrackScheduler(
true);
376 result->solver->setCachingEnabled(
true);
377 auto req = result->solver->getRequirements(*result->env, storm::solver::OptimizationDirection::Maximize,
false);
378 boost::optional<ValueType> lowerBound = this->computeWeightedResultBound(
true, weightVector, storm::storage::BitVector(weightVector.size(),
true));
380 result->solver->setLowerBound(lowerBound.get());
381 req.clearLowerBounds();
383 boost::optional<ValueType> upperBound = this->computeWeightedResultBound(
false, weightVector, storm::storage::BitVector(weightVector.size(),
true));
385 result->solver->setUpperBound(upperBound.get());
386 req.clearUpperBounds();
391 STORM_LOG_THROW(!req.hasEnabledCriticalRequirement(), storm::exceptions::UncheckedRequirementException,
392 "Solver requirements " + req.getEnabledRequirementsAsString() +
" not checked.");
393 result->solver->setRequirementsChecked(
true);
394 result->solver->setOptimizationDirection(storm::solver::OptimizationDirection::Maximize);
396 result->b.resize(PS.getNumberOfChoices());
401template<
class SparseMaModelType>
402template<typename VT, typename std::enable_if<storm::NumberTraits<VT>::SupportsExponential,
int>::type>
403std::unique_ptr<typename StandardMaPcaaWeightVectorChecker<SparseMaModelType>::LinEqSolverData>
404StandardMaPcaaWeightVectorChecker<SparseMaModelType>::initLinEqSolver(
Environment const& env, SubModel
const& PS,
bool acyclic)
const {
405 std::unique_ptr<LinEqSolverData> result(
new LinEqSolverData());
406 result->env = std::make_unique<Environment>(env);
407 result->acyclic = acyclic;
410 result->env->solver().setLinearEquationSolverType(storm::solver::EquationSolverType::Acyclic);
412 result->factory = std::make_unique<storm::solver::GeneralLinearEquationSolverFactory<ValueType>>();
413 result->b.resize(PS.getNumberOfStates());
417template<
class SparseMaModelType>
418template<typename VT, typename std::enable_if<!storm::NumberTraits<VT>::SupportsExponential,
int>::type>
419std::unique_ptr<typename StandardMaPcaaWeightVectorChecker<SparseMaModelType>::LinEqSolverData>
420StandardMaPcaaWeightVectorChecker<SparseMaModelType>::initLinEqSolver(
Environment const& , SubModel
const& ,
bool )
const {
421 STORM_LOG_THROW(
false, storm::exceptions::InvalidOperationException,
"Computing bounded probabilities of MAs is unsupported for this value type.");
424template<
class SparseMaModelType>
425void StandardMaPcaaWeightVectorChecker<SparseMaModelType>::updateDataToCurrentEpoch(
426 SubModel& MS, SubModel& PS, MinMaxSolverData& minMax,
storm::storage::BitVector& consideredObjectives, uint_fast64_t
const& currentEpoch,
427 std::vector<ValueType>
const& weightVector, TimeBoundMap::iterator& upperTimeBoundIt, TimeBoundMap
const& upperTimeBounds) {
428 if (upperTimeBoundIt != upperTimeBounds.end() && currentEpoch == upperTimeBoundIt->first) {
429 consideredObjectives |= upperTimeBoundIt->second;
430 for (uint64_t objIndex : upperTimeBoundIt->second) {
433 storm::solver::minimize(this->objectives[objIndex].formula->getOptimalityType()) ? -weightVector[objIndex] : weightVector[objIndex];
441 PS.toMS.multiplyWithVector(MS.weightedSolutionVector, minMax.b);
445template<
class SparseMaModelType>
446void StandardMaPcaaWeightVectorChecker<SparseMaModelType>::performPSStep(Environment
const& env, SubModel& PS, SubModel
const& MS, MinMaxSolverData& minMax,
447 LinEqSolverData& linEq, std::vector<uint_fast64_t>& optimalChoicesAtCurrentEpoch,
448 storm::storage::BitVector
const& consideredObjectives,
449 std::vector<ValueType>
const& weightVector)
const {
451 minMax.solver->solveEquations(*minMax.env, PS.weightedSolutionVector, minMax.b);
452 auto const& newChoices = minMax.solver->getSchedulerChoices();
455 optimalChoicesAtCurrentEpoch = newChoices;
456 PS.objectiveSolutionVectors[*consideredObjectives.
begin()] = PS.weightedSolutionVector;
462 if (linEq.solver ==
nullptr || newChoices != optimalChoicesAtCurrentEpoch) {
463 optimalChoicesAtCurrentEpoch = newChoices;
464 linEq.solver =
nullptr;
466 storm::storage::SparseMatrix<ValueType> linEqMatrix = PS.toPS.selectRowsFromRowGroups(optimalChoicesAtCurrentEpoch, needEquationSystem);
467 if (needEquationSystem) {
470 linEq.solver = linEq.factory->create(*linEq.env, std::move(linEqMatrix));
471 linEq.solver->setCachingEnabled(
true);
472 auto req = linEq.solver->getRequirements(*linEq.env);
476 STORM_LOG_THROW(!req.hasEnabledCriticalRequirement(), storm::exceptions::UncheckedRequirementException,
477 "Solver requirements " + req.getEnabledRequirementsAsString() +
" not checked.");
483 for (uint64_t objIndex : consideredObjectives) {
484 auto const& objectiveRewardVectorPS = PS.objectiveRewardVectors[objIndex];
485 auto const& objectiveSolutionVectorMS = MS.objectiveSolutionVectors[objIndex];
488 auto itGroupIndex = PS.toPS.getRowGroupIndices().begin();
489 auto itChoiceOffset = optimalChoicesAtCurrentEpoch.begin();
490 for (
auto& bValue : linEq.b) {
491 uint_fast64_t row = (*itGroupIndex) + (*itChoiceOffset);
492 bValue = objectiveRewardVectorPS[row];
493 for (
auto const& entry : PS.toMS.getRow(row)) {
494 bValue += entry.getValue() * objectiveSolutionVectorMS[entry.getColumn()];
499 linEq.solver->solveEquations(*linEq.env, PS.objectiveSolutionVectors[objIndex], linEq.b);
504template<
class SparseMaModelType>
505void StandardMaPcaaWeightVectorChecker<SparseMaModelType>::performMSStep(Environment
const& env, SubModel& MS, SubModel
const& PS,
506 storm::storage::BitVector
const& consideredObjectives,
507 std::vector<ValueType>
const& weightVector)
const {
508 MS.toMS.multiplyWithVector(MS.weightedSolutionVector, MS.auxChoiceValues);
510 MS.toPS.multiplyWithVector(PS.weightedSolutionVector, MS.auxChoiceValues);
514 MS.objectiveSolutionVectors[*consideredObjectives.
begin()] = MS.weightedSolutionVector;
519 for (uint64_t objIndex : consideredObjectives) {
520 MS.toMS.multiplyWithVector(MS.objectiveSolutionVectors[objIndex], MS.auxChoiceValues);
522 MS.toPS.multiplyWithVector(PS.objectiveSolutionVectors[objIndex], MS.auxChoiceValues);
530 std::vector<double>
const& direction)
const;
533template std::unique_ptr<typename StandardMaPcaaWeightVectorChecker<storm::models::sparse::MarkovAutomaton<double>>::LinEqSolverData>
539 storm::RationalNumber>(std::vector<storm::RationalNumber>
const& direction)
const;
542 storm::RationalNumber
const& digitizationConstant)
const;
543template std::unique_ptr<typename StandardMaPcaaWeightVectorChecker<storm::models::sparse::MarkovAutomaton<storm::RationalNumber>>::LinEqSolverData>
Helper class for model checking queries that depend on the long run behavior of the (nondeterministic...
std::vector< Objective< ValueType > > objectives
ValueType const & getWeightedPrecision() const
Helper Class that takes preprocessed Pcaa data and a weight vector and ...
StandardMaPcaaWeightVectorChecker(preprocessing::SparseMultiObjectivePreprocessorResult< SparseMaModelType > const &preprocessorResult)
virtual ValueType getWeightedPrecisionUnboundedPhase() const override
virtual ValueType getWeightedPrecisionBoundedPhase() const override
virtual void initializeModelTypeSpecificData(SparseMaModelType const &model) override
virtual bool smallPrecisionsAreChallenging() const override
Returns whether achieving precise values (i.e.
virtual storm::modelchecker::helper::SparseNondeterministicInfiniteHorizonHelper< ValueType > createNondetInfiniteHorizonHelper(storm::storage::SparseMatrix< ValueType > const &transitions) const override
virtual storm::modelchecker::helper::SparseNondeterministicInfiniteHorizonHelper< ValueType > createDetInfiniteHorizonHelper(storm::storage::SparseMatrix< ValueType > const &transitions) const override
storm::storage::BitVector objectivesWithNoUpperTimeBound
std::vector< std::vector< ValueType > > actionRewards
StandardPcaaWeightVectorChecker(preprocessing::SparseMultiObjectivePreprocessorResult< SparseMaModelType > const &preprocessorResult)
std::vector< std::vector< ValueType > > stateRewards
void initialize(preprocessing::SparseMultiObjectivePreprocessorResult< SparseMaModelType > const &preprocessorResult)
virtual std::unique_ptr< MinMaxLinearEquationSolver< ValueType, SolutionType > > create(Environment const &env) const override
A bit vector that is internally represented as a vector of 64-bit values.
uint64_t getNumberOfSetBits() const
Returns the number of bits that are set to true in this bit vector.
const_iterator begin() const
Returns an iterator to the indices of the set bits in the bit vector.
A class that holds a possibly non-square matrix in the compressed row storage format.
void convertToEquationSystem()
Transforms the matrix into an equation system.
index_type getRowGroupCount() const
Returns the number of row groups in the matrix.
#define STORM_LOG_DEBUG(message)
#define STORM_LOG_STATISTICS(message)
#define STORM_LOG_ASSERT(cond, message)
#define STORM_LOG_WARN_COND(cond, message)
#define STORM_LOG_THROW(cond, exception, message)
SFTBDDChecker::ValueType ValueType
bool constexpr maximize(OptimizationDirection d)
bool constexpr minimize(OptimizationDirection d)
bool hasCycle(storm::storage::SparseMatrix< T > const &transitionMatrix, boost::optional< storm::storage::BitVector > const &subsystem)
Returns true if the graph represented by the given matrix has a cycle.
bool isTerminate()
Check whether the program should terminate (due to some abort signal).
void addVectors(std::vector< InValueType1 > const &firstOperand, std::vector< InValueType2 > const &secondOperand, std::vector< OutValueType > &target)
Adds the two given vectors and writes the result to the target vector.
T dotProduct(std::vector< T > const &firstOperand, std::vector< T > const &secondOperand)
Computes the dot product (aka scalar product) and returns the result.
VT max_if(std::vector< VT > const &values, storm::storage::BitVector const &filter)
Computes the maximum of the entries from the values that are selected by the (non-empty) filter.
void setVectorValues(std::vector< T > &vector, storm::storage::BitVector const &positions, std::vector< T > const &values)
Sets the provided values at the provided positions in the given vector.
void selectVectorValues(std::vector< T > &vector, storm::storage::BitVector const &positions, std::vector< T > const &values)
Selects the elements from a vector at the specified positions and writes them consecutively into anot...
void addScaledVector(std::vector< InValueType1 > &firstOperand, std::vector< InValueType2 > const &secondOperand, InValueType3 const &factor)
Computes x:= x + a*y, i.e., adds each element of the first vector and (the corresponding element of t...
void scaleVectorInPlace(std::vector< ValueType1 > &target, ValueType2 const &factor)
Multiplies each element of the given vector with the given factor and writes the result into the vect...
bool isOne(ValueType const &a)
bool isZero(ValueType const &a)
ValueType pow(ValueType const &value, int_fast64_t exponent)
ValueType sqrt(ValueType const &number)
TargetType convertNumber(SourceType const &number)
static const bool SupportsExponential