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
-
-
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.
-
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.
-
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.
-
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.
-
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}#
-
constexpr Range() = default#
-
struct AllT#