//get the total values we need to calculate the theta denominator sums
for (int i = 0; i < shared[0]->size(); i++) {
//store in temps to avoid multiple repetitive function calls
//get the total values we need to calculate the theta denominator sums
for (int i = 0; i < shared[0]->size(); i++) {
//store in temps to avoid multiple repetitive function calls