mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	Add a ragged vector to the serialisation tests. NB: Already had nested (regular) std::vector<std::vector<...>>
This commit is contained in:
		@@ -48,6 +48,7 @@ public:
 | 
				
			|||||||
                          std::vector<double>, array,
 | 
					                          std::vector<double>, array,
 | 
				
			||||||
                          std::vector<std::vector<double> >, twodimarray,
 | 
					                          std::vector<std::vector<double> >, twodimarray,
 | 
				
			||||||
			  std::vector<std::vector<std::vector<std::complex<double>> > >, cmplx3darray,
 | 
								  std::vector<std::vector<std::vector<std::complex<double>> > >, cmplx3darray,
 | 
				
			||||||
 | 
					                          std::vector<std::vector<std::vector<int> > >, ragged,
 | 
				
			||||||
			  SpinColourMatrix, scm
 | 
								  SpinColourMatrix, scm
 | 
				
			||||||
                          );
 | 
					                          );
 | 
				
			||||||
  myclass() {}
 | 
					  myclass() {}
 | 
				
			||||||
@@ -56,6 +57,9 @@ public:
 | 
				
			|||||||
  , twodimarray(3,std::vector<double>(5, 1.23456))
 | 
					  , twodimarray(3,std::vector<double>(5, 1.23456))
 | 
				
			||||||
  , cmplx3darray(3,std::vector<std::vector<std::complex<double>>>(5, std::vector<std::complex<double>>(7, std::complex<double>(1.2, 3.4))))
 | 
					  , cmplx3darray(3,std::vector<std::vector<std::complex<double>>>(5, std::vector<std::complex<double>>(7, std::complex<double>(1.2, 3.4))))
 | 
				
			||||||
  , ve(2, myenum::blue)
 | 
					  , ve(2, myenum::blue)
 | 
				
			||||||
 | 
					  , ragged( {{{i+1},{i+2,i+3}}, // ragged
 | 
				
			||||||
 | 
					            {{i+4,i+5,i+6,i+7},{i+8,i+9,i+10,i+11},{i+12,i+13,i+14,i+15}}, // block
 | 
				
			||||||
 | 
					            {{i+16,i+17},{i+18,i+19,i+20}}} ) //ragged
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    e=myenum::red;
 | 
					    e=myenum::red;
 | 
				
			||||||
    x=i;
 | 
					    x=i;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user