28 ObjexxFCL::FArray2D< core::PackerEnergy > & pair_energy_table,
29 ObjexxFCL::FArray2A< core::PackerEnergy >
const & rot_rot_table
32 using namespace ObjexxFCL;
34 Size const nrots1 = total_rotamers_2_unique_rotamers_1.size();
35 Size const nrots2 = total_rotamers_2_unique_rotamers_2.size();
37 FArray2A< core::PackerEnergy > etable_proxy( pair_energy_table, nrots2, nrots1 );
38 for (
Size ii = 1; ii <= nrots1; ++ii ) {
39 Size const ii_inorder = total_rotamers_2_unique_rotamers_1[ ii ];
40 for (
Size jj = 1; jj <= nrots2; ++jj ) {
41 Size const jj_inorder = total_rotamers_2_unique_rotamers_2[ jj ];
42 etable_proxy( jj, ii ) = rot_rot_table( jj_inorder, ii_inorder );