00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef MTL_SHIFT_BLOCKS_INCLUDE
00013 #define MTL_SHIFT_BLOCKS_INCLUDE
00014
00015 #include <boost/numeric/mtl/operation/shift_block_detail.hpp>
00016
00017 namespace mtl { namespace operations {
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 template <typename Size, typename Starts, typename NewStarts, typename Ends, typename Data>
00028 void shift_blocks(Size blocks, Starts const& starts, NewStarts const& new_starts,
00029 Ends const& ends, Data& data)
00030 {
00031 for (Size i = 0; i < blocks; ) {
00032 detail::copy_blocks_forward(i, blocks, starts, new_starts, ends, data);
00033 detail::copy_blocks_backward(i, blocks, starts, new_starts, ends, data);
00034 }
00035 }
00036
00037
00038 }}
00039
00040 #endif // MTL_SHIFT_BLOCKS_INCLUDE