50 return std::vector<Variant>(
views.begin(),
views.end());
54 std::vector<Variant>
out;
55 for (std::size_t i = 0
ul; i <
views.size() / 9ul; ++i) {
56 auto const view =
views.subspan(i * 9ul, 9ul);
59 out.emplace_back(trace / 3.);
73 std::unordered_map<std::string, Variant>
dict;
79 for (std::size_t i = 0
ul; i <
obs_dim; ++i) {
85 auto const n_bonds =
static_cast<int>(
system.bonded_ias->get_next_key());
86 for (
int bond_id = 0; bond_id <
n_bonds; ++bond_id) {
87 if (
system.bonded_ias->get_zero_based_type(bond_id) != 0) {
88 dict[
"bonded," + std::to_string(bond_id)] =
94 system.nonbonded_ias->get_max_seen_particle_type() + 1;
97 auto const indices = std::to_string(i) +
"," + std::to_string(
j);
108 for (std::size_t i = 0
ul; i <
values.size(); ++i) {
109 dict[
"coulomb," + std::to_string(i)] =
values[i];
117 for (std::size_t i = 0
ul; i <
values.size(); ++i) {
118 dict[
"dipolar," + std::to_string(i)] =
values[i];
126 for (std::size_t i = 0
ul; i <
values.size(); ++i) {
127 dict[
"virtual_sites," + std::to_string(i)] =
values[i];
boost::make_recursive_variant< None, bool, int, std::size_t, double, std::string, ObjectRef, Utils::Vector3b, Utils::Vector3i, Utils::Vector2d, Utils::Vector3d, Utils::Vector4d, std::vector< int >, std::vector< double >, std::vector< boost::recursive_variant_ >, std::unordered_map< int, boost::recursive_variant_ >, std::unordered_map< std::string, boost::recursive_variant_ > >::type Variant
Possible types for parameters.