A Shape Class for NdArrays.
More...
#include <Shape.hpp>
A Shape Class for NdArrays.
◆ Shape() [1/3]
constexpr nc::Shape::Shape |
( |
| ) |
|
|
constexprdefault |
◆ Shape() [2/3]
constexpr nc::Shape::Shape |
( |
uint32 |
inSquareSize | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ Shape() [3/3]
◆ isnull()
bool nc::Shape::isnull |
( |
| ) |
const |
|
inlinenoexcept |
Returns whether the shape is null (constructed with the default constructor).
- Returns
- bool
◆ issquare()
bool nc::Shape::issquare |
( |
| ) |
const |
|
inlinenoexcept |
Returns whether the shape is square or not.
- Returns
- bool
◆ operator!=()
bool nc::Shape::operator!= |
( |
const Shape & |
inOtherShape | ) |
const |
|
inlinenoexcept |
Not equality operator
- Parameters
-
- Returns
- bool
◆ operator==()
bool nc::Shape::operator== |
( |
const Shape & |
inOtherShape | ) |
const |
|
inlinenoexcept |
Equality operator
- Parameters
-
- Returns
- bool
◆ print()
void nc::Shape::print |
( |
| ) |
const |
|
inline |
Prints the shape to the console
◆ size()
uint32 nc::Shape::size |
( |
| ) |
const |
|
inlinenoexcept |
Returns the size of the shape
- Returns
- size
◆ str()
std::string nc::Shape::str |
( |
| ) |
const |
|
inline |
Returns the shape as a string representation
- Returns
- std::string
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
inOStream, |
|
|
const Shape & |
inShape |
|
) |
| |
|
friend |
IO operator for the Shape class
- Parameters
-
- Returns
- std::ostream
◆ cols
◆ rows
The documentation for this class was generated from the following file: