#include <iostream>
int main(
int argc,
char *argv[]) {
Eigen::Array<short unsigned, Eigen::Dynamic, Eigen::Dynamic> *b1=bb.
getEmptyBuffer();
std::cout<<"get empty buffer "<<std::endl;
Eigen::Array<short unsigned, Eigen::Dynamic, Eigen::Dynamic> *b2=bb.
getEmptyBuffer();
std::cout<<"get empty buffer "<<std::endl;
for (int i=0;i<b1->rows();i++){
for (int j=0;j<b1->cols();j++){
std::cout<<"i,j = "<<i<<','<<j<<'\t';
(*b1)(i,j)=1;
(*b2)(i,j)=2;
}
std::cout<<std::endl;
}
std::cout<<"set constants "<<std::endl;
std::cout<<"put full buffers"<<std::endl;
std::cout<<(*b1)<<std::endl;
std::cout<<*b1<<std::endl;
std::cout<<*b1<<std::endl;
std::cout<<*b1<<std::endl;
std::cout<<*b1<<std::endl;
std::cout<<" resizing"<<std::endl;
std::cout<<*b1<<std::endl;
std::cout<<*b1<<std::endl;
std::cout<<*b1<<std::endl;
std::cout<<*b1<<std::endl;
return 0;
}