82 return rows == inOtherShape.rows &&
cols == inOtherShape.cols;
94 return !(*
this == inOtherShape);
157 inOStream << inShape.
str();
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
bool operator==(const Shape &inOtherShape) const noexcept
Definition: Core/Shape.hpp:80
constexpr Shape()=default
bool isnull() const noexcept
Definition: Core/Shape.hpp:113
void print() const
Definition: Core/Shape.hpp:142
constexpr Shape(uint32 inRows, uint32 inCols) noexcept
Definition: Core/Shape.hpp:68
friend std::ostream & operator<<(std::ostream &inOStream, const Shape &inShape)
Definition: Core/Shape.hpp:155
bool operator!=(const Shape &inOtherShape) const noexcept
Definition: Core/Shape.hpp:92
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:123
std::string str() const
Definition: Core/Shape.hpp:133
uint32 cols
Definition: Core/Shape.hpp:45
uint32 size() const noexcept
Definition: Core/Shape.hpp:102
std::string num2str(dtype inNumber)
Definition: num2str.hpp:46
Definition: Coordinate.hpp:45
std::uint32_t uint32
Definition: Types.hpp:40