84 return rows == inOtherShape.rows &&
cols == inOtherShape.cols;
96 return !(*
this == inOtherShape);
115 [[nodiscard]]
bool isnull() const noexcept
135 [[nodiscard]] std::string
str()
const
159 inOStream << inShape.
str();
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
bool operator==(const Shape &inOtherShape) const noexcept
Definition: Core/Shape.hpp:82
friend std::ostream & operator<<(std::ostream &inOStream, const Shape &inShape)
Definition: Core/Shape.hpp:157
constexpr Shape()=default
bool isnull() const noexcept
Definition: Core/Shape.hpp:115
void print() const
Definition: Core/Shape.hpp:144
constexpr Shape(uint32 inRows, uint32 inCols) noexcept
Definition: Core/Shape.hpp:69
bool operator!=(const Shape &inOtherShape) const noexcept
Definition: Core/Shape.hpp:94
constexpr Shape(uint32 inSquareSize) noexcept
Definition: Core/Shape.hpp:57
uint32 rows
Definition: Core/Shape.hpp:44
bool issquare() const noexcept
Definition: Core/Shape.hpp:125
std::string str() const
Definition: Core/Shape.hpp:135
uint32 cols
Definition: Core/Shape.hpp:45
uint32 size() const noexcept
Definition: Core/Shape.hpp:104
std::string num2str(dtype inNumber)
Definition: num2str.hpp:44
Definition: Cartesian.hpp:40
std::uint32_t uint32
Definition: Types.hpp:40