29 #ifndef CDPL_FORCEFIELD_GRADIENTVECTORTRAITS_HPP
30 #define CDPL_FORCEFIELD_GRADIENTVECTORTRAITS_HPP
44 template <
typename GV>
53 for (std::size_t i = 0; i < num_elem; i++) {
84 typedef typename VectorType::size_type
SizeType;
88 for (
typename std::vector<V>::iterator it = g.begin(), end = g.begin() + num_elem; it != end; ++it)
Definition of the class CDPL::Math::VectorArray.
An array for storing generic 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:884
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
Definition: GradientVectorTraits.hpp:68
Math::VectorArray< V > VectorType
Definition: GradientVectorTraits.hpp:65
V::ValueType ValueType
Definition: GradientVectorTraits.hpp:67
static void clear(VectorType &g, std::size_t num_elem)
Definition: GradientVectorTraits.hpp:70
V ElementType
Definition: GradientVectorTraits.hpp:66
VectorType::size_type SizeType
Definition: GradientVectorTraits.hpp:84
std::vector< V > VectorType
Definition: GradientVectorTraits.hpp:81
static void clear(VectorType &g, std::size_t num_elem)
Definition: GradientVectorTraits.hpp:86
V ElementType
Definition: GradientVectorTraits.hpp:82
V::ValueType ValueType
Definition: GradientVectorTraits.hpp:83
Definition: GradientVectorTraits.hpp:46
std::size_t SizeType
Definition: GradientVectorTraits.hpp:49
static void clear(VectorType &g, std::size_t num_elem)
Definition: GradientVectorTraits.hpp:51
GV VectorType
Definition: GradientVectorTraits.hpp:48