Einsums/TensorBase/Common.hpp#

Defined in header Einsums/TensorBase/Common.hpp.

See Overview for a list of names and headers that are part of the public Einsums API.

Defines

DEFINE_STRUCT(Name, UnderlyingType)#

Convenience macro for creating a type derived from a std::array.

namespace einsums

Todo:

Variables

static struct AllT All#
struct AllT#
template<std::size_t Rank>
struct Chunk : public std::array<std::int64_t, Rank>#
#include <Common.hpp>

Holds a list of chunks in an array.

Public Functions

template<typename ...Args>
inline explicit constexpr Chunk(Args... args)#

Aggregate constructor.

template<std::size_t Rank>
struct Count : public std::array<std::int64_t, Rank>#
#include <Common.hpp>

Holds a list of counts in an array.

Public Functions

template<typename ...Args>
inline explicit constexpr Count(Args... args)#

Aggregate constructor.

template<std::size_t Rank>
struct Dim : public std::array<std::int64_t, Rank>#
#include <Common.hpp>

Holds a list of dimensions in an array.

Public Functions

template<typename ...Args>
inline explicit constexpr Dim(Args... args)#

Aggregate constructor.

template<typename Iterator>
inline constexpr Dim(Iterator start, Iterator end)#
template<std::size_t Rank>
struct Offset : public std::array<std::int64_t, Rank>#
#include <Common.hpp>

Holds a list of offsets in an array.

Public Functions

template<typename ...Args>
inline explicit constexpr Offset(Args... args)#

Aggregate constructor.

template<typename Iterator>
inline constexpr Offset(Iterator start, Iterator end)#
struct Range : public std::array<std::int64_t, 2>#
#include <Common.hpp>

Holds two values: a starting value and an ending value.

Holds two values: a starting value and an ending value. It will be treated as a single value if the start and end are the same.

Subclassed by einsums::RemovableRange

Public Functions

constexpr Range() = default#
template<std::integral First, std::integral Second>
inline explicit constexpr Range(First first, Second second)#

Initialize a range.

inline bool is_removable() const noexcept#

Protected Attributes

bool _is_removable = {false}#
struct RemovableRange : public einsums::Range#

Public Functions

template<std::integral First, std::integral Second>
inline explicit constexpr RemovableRange(First first, Second second)#

Initialize a range.

template<std::size_t Rank>
struct Stride : public std::array<std::int64_t, Rank>#
#include <Common.hpp>

Holds a list of strides in an array.

Public Functions

template<typename ...Args>
inline explicit constexpr Stride(Args... args)#

Aggregate constructor.

template<typename Iterator>
inline constexpr Stride(Iterator start, Iterator end)#