#ifndef MULTIVECTOR_CONTAINER_INL_
#define MULTIVECTOR_CONTAINER_INL_
#include <iostream>
#include <assert.h>
#include <time.h>
#include <chrono>
#include <tclap/CmdLine.h>
{
try {
TCLAP::CmdLine cmd("Command line arguments for ", '=');
TCLAP::ValueArg<size_t>
EArg(
"n",
"number-of-events",
"Number of events",
true, 10e6,
"size_t");
}
catch (TCLAP::ArgException &e) {
std::cerr << "error: " << e.error() << " for arg " << e.argId()
<< std::endl;
}
{
hydra::Vector4R( hydra::get<2>(entry), hydra::get<3>(entry) , hydra::get<4>(entry),hydra::get<5>(entry)));
};
{
hydra::Vector4R vector4 = hydra::get<1>(entry);
vector4.get(0), vector4.get(1), vector4.get(2), vector4.get(3));
};
{
std::cout << "=========================================="<<std::endl;
std::cout << "| <--- DEVICE ---> |"<<std::endl;
std::cout << "=========================================="<<std::endl;
mvector_d.push_back(
hydra::tuple<int, int, double,double, double, double>(i, i, i, i, i, i ));
std::cout<< std::endl << "________________________________________________________________________________" << std::endl<< std::endl;
for(size_t i=0; i<10; i++ )
std::cout << i << ": "<< mvector_d[i] << std::endl;
std::cout<< std::endl << " Vector capacity: "
<< mvector_d.capacity()
<< " size: "
<< mvector_d.size()
<< std::endl << std::endl;
for(auto x=hydra::begin<0>(mvector_d);
x!=hydra::end<0>(mvector_d); x++ ) *x *=2 ;
for(
auto x=mvector_d.begin(
_0);
x!= mvector_d.end(
_0); x++ ) *x *=4 ;
for(size_t i=0; i<mvector_d.size(); i++ ) {
}
std::cout<< std::endl << "________________________________________________________________________________" << std::endl<< std::endl;
std::cout<< std::endl << "(i , j, k, l, m, n ) -> (2*i , *4j, k+1, l+1, m, n ) " << std::endl<< std::endl;
for(size_t i=0; i<10; i++ )
std::cout << i << ": "<< mvector_d[i] << std::endl;
std::cout<< std::endl << " Vector capacity: "
<< mvector_d.capacity()
<< " size: "
<< mvector_d.size()
<< std::endl << std::endl;
std::cout<< std::endl << "________________________________________________________________________________" << std::endl<< std::endl;
std::cout<< std::endl << "(i , j, k, l, m, n ) -> ( hydra::complex(i , j), hydra::Vector4R(k, l, m, n) ) " << std::endl<< std::endl;
for(size_t i=0; i<10; i++ )
std::cout << i << ": "<< mvector_d[caster][i] << std::endl;
std::cout<< std::endl << " Vector capacity: "
<< mvector_d.capacity()
<< " size: "
<< mvector_d.size()
<< std::endl << std::endl;
std::cout<< std::endl << "________________________________________________________________________________" << std::endl<< std::endl;
mvector_d.clear();
std::cout<< std::endl << " Vector capacity: "
<< mvector_d.capacity()
<< " size: "
<< mvector_d.size()
<< std::endl << std::endl;
hydra::Vector4R vector4(i, i, i, i );
}
std::cout<< std::endl << "Print current content " << std::endl<< std::endl;
for(size_t i=0; i<10; i++ )
std::cout << i << ": "<< mvector_d[i] << std::endl;
std::cout<< std::endl << " Vector capacity: "
<< mvector_d.capacity()
<< " size: "
<< mvector_d.size()
<< std::endl << std::endl;
std::cout<< std::endl << "________________________________________________________________________________" << std::endl<< std::endl;
std::cout<< std::endl << "Printing only the column 3 and 4 of the container " << std::endl<< std::endl;
size_t i=0;
for(
auto x=mvector_d.begin(
_2,
_3);
x!= mvector_d.begin(
_2,
_3)+10; i++, x++ )
std::cout << i << ": "<< *x << std::endl;
std::cout<< std::endl << " Vector capacity: "
<< mvector_d.capacity()
<< " size: "
<< mvector_d.size()
<< std::endl << std::endl;
std::cout<< std::endl << "________________________________________________________________________________" << std::endl<< std::endl;
std::cout<< std::endl << "Printing only the column 2 and 5 of the container in reverse order (last 10 elements)" << std::endl<< std::endl;
i=0;
for(
auto x=mvector_d.rbegin(
_1,
_4);
x!= mvector_d.rbegin(
_1,
_4)+10; i++, x++ )
std::cout << i << ": "<< *x << std::endl;
std::cout<< std::endl << " Vector capacity: "
<< mvector_d.capacity()
<< " size: "
<< mvector_d.size()
<< std::endl << std::endl;
}
return 0;
}
#endif