1 ==> storage / compression: flat storage / none
2 virtual / actual sizes: 12 / 12
3 original: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
4 unpermuted: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
5 strided(3): [0, 3, 6, 9, 0, 3, 6, 9, 0, 3, 6, 9]
6 ==> storage / compression: flat storage / symmetric
7 virtual / actual sizes: 12 / 7
8 original: [0, 1, 2, 3, 4, 5, 6]
9 unpermuted: [0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1]
10 strided(3): [0, 3, 6, 3, 0, 3, 6]
11 ==> storage / compression: multilevel storage / none
12 virtual / actual sizes: 16 / 16
13 original: [0, 8, 4, 12, 2, 10, 14, 6, 1, 13, 9, 5, 15, 3, 7, 11]
14 unpermuted: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
15 strided(3): [0, 8, 12, 4, 6, 14, 10, 2, 3, 7, 11, 15, 13, 9, 5, 1]
16 ==> storage / compression: multilevel storage / symmetric
17 virtual / actual sizes: 16 / 9
18 original: [0, 8, 4, 2, 6, 1, 3, 7, 5]
19 unpermuted: [0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1]
20 strided(3): [0, 8, 4, 6, 2, 3, 7, 5, 1]
#include "latbuilder/Storage.h"
#include "latbuilder/TextStream.h"
using TextStream::operator<<;
template <LatType L, Compress C>
{
std::cout << " virtual / actual sizes: " << storage.virtualSize() << " / " << storage.size() << std::endl;
auto unpermuted = storage.unpermuted(original);
for (RealVector::size_type j = unpermuted.size(); j > 0; j--)
unpermuted[j - 1] = j - 1;
auto strided = storage.strided(original, 3);
std::cout << " original: " << original << std::endl;
std::cout << " unpermuted: " << unpermuted << std::endl;
std::cout << " strided(3): " << strided << std::endl;
}
int main(int argc, const char *argv[])
{
return 0;
}