A Shape Class for NdArrays.
More...
#include <Shape.hpp>
A Shape Class for NdArrays.
◆ Shape() [1/3]
◆ Shape() [2/3]
|
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!=()
Not equality operator
- Parameters
-
- Returns
- bool
◆ operator==()
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<<
IO operator for the Shape class
- Parameters
-
- Returns
- std::ostream
◆ cols
◆ rows
The documentation for this class was generated from the following file: