Template Struct GenericVectorStorage#

Struct Documentation#

template<typename ScalarType, size_t NumDims>
struct GenericVectorStorage#

Public Types

using Scalar = ScalarType#
using IndexType = typename typetraits::TypeInfo<GenericVectorStorage>::IndexType#
using IndexTypeConst = typename typetraits::TypeInfo<GenericVectorStorage>::IndexTypeConst#
using GetType = typename typetraits::TypeInfo<GenericVectorStorage>::GetType#

Public Functions

template<typename ...Args>
inline GenericVectorStorage(Args... args)#
template<typename T>
inline GenericVectorStorage(const T &other)#
template<typename T>
inline GenericVectorStorage(const std::initializer_list<T> &other)#
template<typename T>
inline GenericVectorStorage(const std::vector<T> &other)#
inline IndexTypeConst operator[](int64_t index) const#
inline IndexType operator[](int64_t index)#
inline Scalar sum() const#
inline Scalar sum2() const#
inline const Scalar &_get(size_t index) const#
inline void _set(size_t index, const Scalar &value)#

Public Members

std::array<Scalar, length> data = {}#

Public Static Attributes

static constexpr size_t dims = NumDims#
static constexpr size_t length = typetraits::TypeInfo<GenericVectorStorage>::length#