760 |
resultTag.copy(baseTag.powD(power)); |
resultTag.copy(baseTag.powD(power)); |
761 |
for (int i=0;i<shape[0];i++) { |
for (int i=0;i<shape[0];i++) { |
762 |
for (int j=0;j<shape[1];j++) { |
for (int j=0;j<shape[1];j++) { |
763 |
tmp=pow(dataView.index(i,j),3.0); |
tmp=pow((double)dataView.index(i,j),(double)3.0); |
764 |
assert(std::abs(resultEx.getPointDataView()(i,j) - tmp) <= REL_TOL*std::abs(tmp)); |
assert(std::abs(resultEx.getPointDataView()(i,j) - tmp) <= REL_TOL*std::abs(tmp)); |
765 |
assert(std::abs(resultCon.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp)); |
assert(std::abs(resultCon.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp)); |
766 |
assert(std::abs(resultTag.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp)); |
assert(std::abs(resultTag.getPointDataView()(i,j)- tmp) <= REL_TOL*std::abs(tmp)); |