ppap4lmp  0.7.2
py_pro_distance_in_molecule.cpp
Go to the documentation of this file.
1 
9 
11 {
12  py::class_<ProDistanceInMolecule,PyProcessor<ProDistanceInMolecule>,Processor,ShPtr<ProDistanceInMolecule>>(m, "ProDistanceInMolecule")
13  .def(py::init<const ElPtr &,const ElPtr &>())
14  .def(py::init<const Vec<std::pair<ElPtr,ElPtr>> &>())
15  .def("set_indices", &ProDistanceInMolecule::set_indices)
16  .def("set_moltype", &ProDistanceInMolecule::set_moltype)
17  .def(
18  "get_distance_array",
20  .def(
21  "get_distance2_array",
23 }
ArrayXXd get_distance_array()
Get computed distances between two atoms in each molecule as a two-dimensional array: each row corres...
const ArrayXXd & get_distance2_array()
Get computed squared distances between two atoms in each molecule as a two-dimensional array: each ro...
void py_pro_distance_in_molecule(py::module &m)
Bind ProDistanceInMolecule class to Python.
This file is for binding ProDistanceInMolecule class to Python.
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
Processor analyzes data contained in one or more Generator objects.
Definition: processor.h:18
void set_moltype(int target_moltype_)
Specify a molecular type. Only molecules whose type property is the specified type are analyzed...
void set_indices(int index1_in_mol_, int index2_in_mol_)
Specify two atoms in a molecule by zero-based index. Distance between the two atoms is computed for e...
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16