1510 |
return powD(tmp); |
return powD(tmp); |
1511 |
} |
} |
1512 |
|
|
1513 |
|
/* Data */ |
1514 |
|
/* Data::powD(const Data& right) const */ |
1515 |
|
/* { */ |
1516 |
|
/* Data result; */ |
1517 |
|
/* if (getDataPointRank()<right.getDataPointRank()) { */ |
1518 |
|
/* result.copy(right); */ |
1519 |
|
/* result.binaryOp(*this,escript::rpow); */ |
1520 |
|
/* } else { */ |
1521 |
|
/* result.copy(*this); */ |
1522 |
|
/* result.binaryOp(right,(Data::BinaryDFunPtr)::pow); */ |
1523 |
|
/* } */ |
1524 |
|
/* return result; */ |
1525 |
|
/* } */ |
1526 |
|
|
1527 |
Data |
Data |
1528 |
Data::powD(const Data& right) const |
Data::powD(const Data& right) const |
1529 |
{ |
{ |
1530 |
Data result; |
return C_TensorBinaryOperation(*this, right, ::pow); |
|
if (getDataPointRank()<right.getDataPointRank()) { |
|
|
result.copy(right); |
|
|
result.binaryOp(*this,escript::rpow); |
|
|
} else { |
|
|
result.copy(*this); |
|
|
result.binaryOp(right,(Data::BinaryDFunPtr)::pow); |
|
|
} |
|
|
return result; |
|
1531 |
} |
} |
1532 |
|
|
|
|
|
1533 |
// |
// |
1534 |
// NOTE: It is essential to specify the namespace this operator belongs to |
// NOTE: It is essential to specify the namespace this operator belongs to |
1535 |
Data |
Data |