@@ -22,24 +22,24 @@ auto corr_answer(const simde::type::tensor& T) {
2222 return T;
2323 } else {
2424 simde::type::tensor T_corr (T);
25- using alloc_type = tensorwrapper::allocator::Eigen<FloatType>;
26- auto & corr_buffer = alloc_type::rebind (T_corr.buffer ());
27- corr_buffer.at ( 0 , 0 , 0 , 0 ) = FloatType{0.774606 , 0 };
28- corr_buffer.at ( 0 , 0 , 0 , 1 ) = FloatType{0.265558 , 2.49687e-06 };
29- corr_buffer.at ( 0 , 0 , 1 , 0 ) = FloatType{0.265558 , 2.49687e-06 };
30- corr_buffer.at ( 0 , 0 , 1 , 1 ) = FloatType{0.446701 , 0 };
31- corr_buffer.at ( 0 , 1 , 0 , 0 ) = FloatType{0.265558 , 2.49687e-06 };
32- corr_buffer.at ( 0 , 1 , 0 , 1 ) = FloatType{0.120666 , 1.10748e-05 };
33- corr_buffer.at ( 0 , 1 , 1 , 0 ) = FloatType{0.120666 , 1.10748e-05 };
34- corr_buffer.at ( 0 , 1 , 1 , 1 ) = FloatType{0.265558 , 2.49687e-06 };
35- corr_buffer.at ( 1 , 0 , 0 , 0 ) = FloatType{0.265558 , 2.49687e-06 };
36- corr_buffer.at ( 1 , 0 , 0 , 1 ) = FloatType{0.120666 , 1.10748e-05 };
37- corr_buffer.at ( 1 , 0 , 1 , 0 ) = FloatType{0.120666 , 1.10748e-05 };
38- corr_buffer.at ( 1 , 0 , 1 , 1 ) = FloatType{0.265558 , 2.49687e-06 };
39- corr_buffer.at ( 1 , 1 , 0 , 0 ) = FloatType{0.446701 , 0 };
40- corr_buffer.at ( 1 , 1 , 0 , 1 ) = FloatType{0.265558 , 2.49687e-06 };
41- corr_buffer.at ( 1 , 1 , 1 , 0 ) = FloatType{0.265558 , 2.49687e-06 };
42- corr_buffer.at ( 1 , 1 , 1 , 1 ) = FloatType{0.774606 , 0 };
25+ using alloc_type = tensorwrapper::allocator::Eigen<FloatType>;
26+ auto & corr_buffer = alloc_type::rebind (T_corr.buffer ());
27+ corr_buffer.set_elem ({ 0 , 0 , 0 , 0 }, FloatType{0.774606 , 0 }) ;
28+ corr_buffer.set_elem ({ 0 , 0 , 0 , 1 }, FloatType{0.265558 , 2.49687e-06 }) ;
29+ corr_buffer.set_elem ({ 0 , 0 , 1 , 0 }, FloatType{0.265558 , 2.49687e-06 }) ;
30+ corr_buffer.set_elem ({ 0 , 0 , 1 , 1 }, FloatType{0.446701 , 0 }) ;
31+ corr_buffer.set_elem ({ 0 , 1 , 0 , 0 }, FloatType{0.265558 , 2.49687e-06 }) ;
32+ corr_buffer.set_elem ({ 0 , 1 , 0 , 1 }, FloatType{0.120666 , 1.10748e-05 }) ;
33+ corr_buffer.set_elem ({ 0 , 1 , 1 , 0 }, FloatType{0.120666 , 1.10748e-05 }) ;
34+ corr_buffer.set_elem ({ 0 , 1 , 1 , 1 }, FloatType{0.265558 , 2.49687e-06 }) ;
35+ corr_buffer.set_elem ({ 1 , 0 , 0 , 0 }, FloatType{0.265558 , 2.49687e-06 }) ;
36+ corr_buffer.set_elem ({ 1 , 0 , 0 , 1 }, FloatType{0.120666 , 1.10748e-05 }) ;
37+ corr_buffer.set_elem ({ 1 , 0 , 1 , 0 }, FloatType{0.120666 , 1.10748e-05 }) ;
38+ corr_buffer.set_elem ({ 1 , 0 , 1 , 1 }, FloatType{0.265558 , 2.49687e-06 }) ;
39+ corr_buffer.set_elem ({ 1 , 1 , 0 , 0 }, FloatType{0.446701 , 0 }) ;
40+ corr_buffer.set_elem ({ 1 , 1 , 0 , 1 }, FloatType{0.265558 , 2.49687e-06 }) ;
41+ corr_buffer.set_elem ({ 1 , 1 , 1 , 0 }, FloatType{0.265558 , 2.49687e-06 }) ;
42+ corr_buffer.set_elem ({ 1 , 1 , 1 , 1 }, FloatType{0.774606 , 0 }) ;
4343 return T_corr;
4444 }
4545}
0 commit comments