n2p2 - A neural network potential package
SymFncExpAngw.h
Go to the documentation of this file.
1// n2p2 - A neural network potential package
2// Copyright (C) 2018 Andreas Singraber (University of Vienna)
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <https://www.gnu.org/licenses/>.
16
17#ifndef SYMFNCEXPANGW_H
18#define SYMFNCEXPANGW_H
19
20#include "SymFncBaseExpAng.h"
21#include <cstddef> // std::size_t
22#include <string> // std::string
23#include <vector> // std::vector
24
25namespace nnp
26{
27
28struct Atom;
29class ElementMap;
30
54{
55public:
61 virtual bool operator==(SymFnc const& rhs) const;
64 virtual bool operator<(SymFnc const& rhs) const;
71 virtual void calculate(Atom& atom, bool const derivatives) const;
72};
73
74}
75
76#endif
Contains element map.
Definition: ElementMap.h:30
Intermediate class for angular SFs based on cutoffs and exponentials.
Angular symmetry function (type 9)
Definition: SymFncExpAngw.h:54
virtual void calculate(Atom &atom, bool const derivatives) const
Calculate symmetry function for one atom.
SymFncExpAngw(ElementMap const &elementMap)
Constructor, sets type = 9.
virtual bool operator==(SymFnc const &rhs) const
Overload == operator.
virtual bool operator<(SymFnc const &rhs) const
Overload < operator.
Symmetry function base class.
Definition: SymFnc.h:40
ElementMap elementMap
Copy of element map.
Definition: SymFnc.h:270
Definition: Atom.h:29
Storage for a single atom.
Definition: Atom.h:33