...
This commit is contained in:
parent
54688698c8
commit
5fdf6970c9
1 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ namespace MultiArrayTools
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert( PackNum<sizeof...(SRanges)-1>::checkIfSameInstance( MAB::mRange->space(), in.mRange->space() ) );
|
assert( PackNum<sizeof...(SRanges)-1>::checkIfSameInstance( MAB::mRange->space(), in.mRange->space() ) );
|
||||||
for(size_t i = 0; i != size(); ++i){
|
for(size_t i = 0; i != mCont.size(); ++i){
|
||||||
mCont[i] += in.mCont[i];
|
mCont[i] += in.mCont[i];
|
||||||
}
|
}
|
||||||
//std::transform(mCont.begin(), mCont.end(), in.mCont.begin(), mCont.begin(), std::plus<T>());
|
//std::transform(mCont.begin(), mCont.end(), in.mCont.begin(), mCont.begin(), std::plus<T>());
|
||||||
|
@ -235,7 +235,7 @@ namespace MultiArrayTools
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert( PackNum<sizeof...(SRanges)-1>::checkIfSameInstance( MAB::mRange->space(), in.mRange->space() ) );
|
assert( PackNum<sizeof...(SRanges)-1>::checkIfSameInstance( MAB::mRange->space(), in.mRange->space() ) );
|
||||||
for(size_t i = 0; i != size(); ++i){
|
for(size_t i = 0; i != mCont.size(); ++i){
|
||||||
mCont[i] -= in.mCont[i];
|
mCont[i] -= in.mCont[i];
|
||||||
}
|
}
|
||||||
//std::transform(mCont.begin(), mCont.end(), in.mCont.begin(), mCont.begin(), std::minus<T>());
|
//std::transform(mCont.begin(), mCont.end(), in.mCont.begin(), mCont.begin(), std::minus<T>());
|
||||||
|
|
Loading…
Reference in a new issue