MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / create

Method create

dscribe/ext/descriptorglobal.cpp:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void DescriptorGlobal::create(
30 py::array_t<double> out,
31 py::array_t<double> positions,
32 py::array_t<int> atomic_numbers,
33 py::array_t<double> cell,
34 py::array_t<bool> pbc
35)
36{
37 // Extend system if periodicity is requested.
38 auto pbc_u = pbc.unchecked<1>();
39 bool is_periodic = this->periodic && (pbc_u(0) || pbc_u(1) || pbc_u(2));
40 if (is_periodic) {
41 ExtendedSystem system_extended = extend_system(positions, atomic_numbers, cell, pbc, this->cutoff);
42 positions = system_extended.positions;
43 atomic_numbers = system_extended.atomic_numbers;
44 }
45 this->create(out, positions, atomic_numbers);
46}
47
48void DescriptorGlobal::create(
49 py::array_t<double> out,

Callers 1

derivatives_numericalMethod · 0.95

Calls 1

extend_systemFunction · 0.85

Tested by

no test coverage detected