29 #ifndef CDPL_FORCEFIELD_GRADIENTVECTORTRAITS_HPP
30 #define CDPL_FORCEFIELD_GRADIENTVECTORTRAITS_HPP
52 template <
typename GV>
68 for (std::size_t i = 0; i < num_elem; i++) {
109 template <
typename V>
129 for (
typename std::vector<V>::iterator it = g.begin(), end = g.begin() + num_elem; it != end; ++it)
Definition of class CDPL::Math::VectorArray.
Array data type for the ordered storage of vector objects.
Definition: VectorArray.hpp:49
StorageType::iterator ElementIterator
A mutable random access iterator used to iterate over the elements of the array.
Definition: Array.hpp:137
ConstElementIterator getElementsBegin() const
Returns a constant iterator pointing to the beginning of the array.
Definition: Array.hpp:892
std::size_t SizeType
The type of objects stored by the array.
Definition: Array.hpp:110
constexpr unsigned int V
Specifies Vanadium.
Definition: AtomType.hpp:177
The namespace of the Chemical Data Processing Library.
VectorType::SizeType SizeType
The type used to specify gradient vector container element counts.
Definition: GradientVectorTraits.hpp:91
Math::VectorArray< V > VectorType
The gradient vector container type.
Definition: GradientVectorTraits.hpp:85
V::ValueType ValueType
The value type of the gradient vector components.
Definition: GradientVectorTraits.hpp:89
static void clear(VectorType &g, std::size_t num_elem)
Zeroes the first num_elem elements of the container g.
Definition: GradientVectorTraits.hpp:98
V ElementType
The gradient vector type stored in the container.
Definition: GradientVectorTraits.hpp:87
VectorType::size_type SizeType
The type used to specify gradient vector container element counts.
Definition: GradientVectorTraits.hpp:120
std::vector< V > VectorType
The gradient vector container type.
Definition: GradientVectorTraits.hpp:114
static void clear(VectorType &g, std::size_t num_elem)
Zeroes the first num_elem elements of the container g.
Definition: GradientVectorTraits.hpp:127
V ElementType
The gradient vector type stored in the container.
Definition: GradientVectorTraits.hpp:116
V::ValueType ValueType
The value type of the gradient vector components.
Definition: GradientVectorTraits.hpp:118
Generic primary traits template providing zero-initialization for a 3D gradient vector container of t...
Definition: GradientVectorTraits.hpp:54
std::size_t SizeType
The type used to specify gradient vector container element counts.
Definition: GradientVectorTraits.hpp:59
static void clear(VectorType &g, std::size_t num_elem)
Zeroes the first num_elem elements of the container g.
Definition: GradientVectorTraits.hpp:66
GV VectorType
The gradient vector container type.
Definition: GradientVectorTraits.hpp:57