15 : rewardModelName(rewardModelInformation.getName()),
16 stateRewards(rewardModelInformation.hasStateRewards()),
17 stateActionRewards(rewardModelInformation.hasStateActionRewards()),
19 stateActionRewardVector() {
25 std::optional<std::vector<ValueType>> optionalStateRewardVector;
26 if (hasStateRewards()) {
27 stateRewardVector.resize(rowGroupCount);
28 optionalStateRewardVector = std::move(stateRewardVector);
31 std::optional<std::vector<ValueType>> optionalStateActionRewardVector;
32 if (hasStateActionRewards()) {
33 stateActionRewardVector.resize(rowCount);
34 optionalStateActionRewardVector = std::move(stateActionRewardVector);