Class MatrixShape#

Class Documentation#

class MatrixShape#

Public Types

using SizeType = uint32_t#

Public Functions

MatrixShape() = default#
template<typename Scalar, size_t Rows, size_t Cols>
explicit MatrixShape(const FixedStorage<Scalar, Rows, Cols> &fixed)#
template<typename V>
MatrixShape(const std::initializer_list<V> &vals)#
template<typename V>
explicit MatrixShape(const std::vector<V> &vals)#
MatrixShape(const Shape &other)#
MatrixShape(const MatrixShape &other) = default#
MatrixShape(MatrixShape &&other) noexcept = default#
template<typename V>
auto operator=(const std::initializer_list<V> &vals) -> MatrixShape&#
template<typename V>
auto operator=(const std::vector<V> &vals) -> MatrixShape&#
MatrixShape &operator=(const MatrixShape &other) = default#
MatrixShape &operator=(MatrixShape &&other) noexcept = default#
template<typename Index>
auto operator[](Index index) const -> const SizeType&#
template<typename Index>
auto operator[](Index index) -> SizeType&#
auto operator<=>(const MatrixShape &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() -> MatrixShape#
static auto ones() -> MatrixShape#
static auto zeros(size_t) -> MatrixShape#
static auto ones(size_t) -> MatrixShape#

Public Static Attributes

static constexpr size_t MaxDimensions = 2#