STORM_LOG_THROW(transitionMatrix.getRowGroupCount()==this->getStateActionRewardVector().size(),storm::exceptions::InvalidOperationException,"The reduction to state rewards is only possible if the size of the action reward vector equals the number of states.");
if(this->hasStateRewards()){
STORM_LOG_THROW(this->getStateRewardVector().size()==this->getStateActionRewardVector().size(),storm::exceptions::InvalidOperationException,"The reduction to state rewards is only possible of both the state and the state-action rewards have the same dimension.");