move block() into op master instanciation -> more save
This commit is contained in:
parent
12ce081934
commit
edcbeb87eb
1 changed files with 3 additions and 2 deletions
|
@ -329,6 +329,7 @@ namespace MultiArrayTools
|
||||||
//std::clock_t cs = clock();
|
//std::clock_t cs = clock();
|
||||||
for(*mIndex = 0; mIndex->pos() != mIndex->max(); mIndex->pp(blockIndexNum) ){
|
for(*mIndex = 0; mIndex->pos() != mIndex->max(); mIndex->pp(blockIndexNum) ){
|
||||||
//std::clock_t c1 = clock();
|
//std::clock_t c1 = clock();
|
||||||
|
block();
|
||||||
get() = mSecond.get();
|
get() = mSecond.get();
|
||||||
//std::clock_t c2 = clock();
|
//std::clock_t c2 = clock();
|
||||||
//cnt += c2 - c1;
|
//cnt += c2 - c1;
|
||||||
|
@ -341,14 +342,14 @@ namespace MultiArrayTools
|
||||||
template <typename T, class OpClass, class... Ranges>
|
template <typename T, class OpClass, class... Ranges>
|
||||||
MBlock<T>& OperationMaster<T,OpClass,Ranges...>::get()
|
MBlock<T>& OperationMaster<T,OpClass,Ranges...>::get()
|
||||||
{
|
{
|
||||||
block();
|
//block();
|
||||||
return mBlock;
|
return mBlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, class OpClass, class... Ranges>
|
template <typename T, class OpClass, class... Ranges>
|
||||||
const Block<T>& OperationMaster<T,OpClass,Ranges...>::get() const
|
const Block<T>& OperationMaster<T,OpClass,Ranges...>::get() const
|
||||||
{
|
{
|
||||||
block();
|
//block();
|
||||||
return mBlock;
|
return mBlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue