Commit 459a0c98 authored by Paul's avatar Paul
Browse files

Formatting

parent 1b55647e
...@@ -80,11 +80,13 @@ struct shape ...@@ -80,11 +80,13 @@ struct shape
/// Returns true if the shape is packed with no padding /// Returns true if the shape is packed with no padding
bool packed() const; bool packed() const;
/// Returns true is the shape has been transposed. That is the strides are not in descending order /// Returns true is the shape has been transposed. That is the strides are not in descending
/// order
bool transposed() const; bool transposed() const;
/// Returns true if the shape is broadcasting a dimension. That is, one of the strides are zero /// Returns true if the shape is broadcasting a dimension. That is, one of the strides are zero
bool broadcasted() const; bool broadcasted() const;
/// Returns true if the shape is in its standard format. That is, the shape is both packed and not transposed. /// Returns true if the shape is in its standard format. That is, the shape is both packed and
/// not transposed.
bool standard() const; bool standard() const;
friend bool operator==(const shape& x, const shape& y); friend bool operator==(const shape& x, const shape& y);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment