Class VectorShape#

Class Documentation#

class VectorShape#

Public Types

using SizeType = uint32_t#

Public Functions

VectorShape() = default#
template<typename Scalar, size_t Elements>
explicit VectorShape(const FixedStorage<Scalar, Elements> &fixed)#
template<typename V>
VectorShape(const std::initializer_list<V> &vals)#
template<typename V>
explicit VectorShape(const std::vector<V> &vals)#
VectorShape(const Shape &other)#
VectorShape(const VectorShape &other) = default#
VectorShape(VectorShape &&other) noexcept = default#
template<typename V>
auto operator=(const std::initializer_list<V> &vals) -> VectorShape&#
template<typename V>
auto operator=(const std::vector<V> &vals) -> VectorShape&#
VectorShape &operator=(const VectorShape &other) = default#
VectorShape &operator=(VectorShape &&other) noexcept = default#
template<typename Index>
auto operator[](Index index) const -> const SizeType&#
template<typename Index>
auto operator[](Index index) -> SizeType&#
auto operator<=>(const VectorShape &other) const = default#
constexpr auto ndim() const -> int#
auto subshape(int start, int end) const -> Shape#
auto size() const -> size_t#
template<typename T_, typename Char, typename Ctx>
void str(const fmt::formatter<T_, Char> &format, Ctx &ctx) const#

Public Static Functions

static auto zeros() -> VectorShape#
static auto ones() -> VectorShape#
static auto zeros(size_t) -> VectorShape#
static auto ones(size_t) -> VectorShape#

Public Static Attributes

static constexpr size_t MaxDimensions = 1#