 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
51 constexpr
Shape() =
default;
83 return rows == inOtherShape.rows &&
cols == inOtherShape.cols;
95 return !(*
this == inOtherShape);
158 inOStream << inShape.
str();
constexpr bool operator!=(const Shape &inOtherShape) const noexcept
Definition: Core/Shape.hpp:93
std::string num2str(dtype inNumber)
Definition: num2str.hpp:47
constexpr bool issquare() const noexcept
Definition: Core/Shape.hpp:124
friend std::ostream & operator<<(std::ostream &inOStream, const Shape &inShape)
Definition: Core/Shape.hpp:156
std::uint32_t uint32
Definition: Types.hpp:41
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
uint32 cols
Definition: Core/Shape.hpp:46
Definition: Coordinate.hpp:45
uint32 rows
Definition: Core/Shape.hpp:45
constexpr uint32 size() const noexcept
Definition: Core/Shape.hpp:103
constexpr bool isnull() const noexcept
Definition: Core/Shape.hpp:114
constexpr Shape(uint32 inRows, uint32 inCols) noexcept
Definition: Core/Shape.hpp:69
constexpr bool operator==(const Shape &inOtherShape) const noexcept
Definition: Core/Shape.hpp:81
constexpr Shape(uint32 inSquareSize) noexcept
Definition: Core/Shape.hpp:58
void print() const
Definition: Core/Shape.hpp:143
constexpr Shape()=default
std::string str() const
Definition: Core/Shape.hpp:134