|
Tannic
A C++ Tensor Library
|
Defines the tannic::Shape class for representing tensor dimensions.
More...
#include <type_traits>#include <array>#include <cstdint>#include <cassert>#include <initializer_list>#include <ostream>#include "concepts.hpp"#include "indexing.hpp"#include "exceptions.hpp"

Go to the source code of this file.
Classes | |
| class | tannic::Shape |
| Represents the shape (dimensions) of an tensor-like expression. More... | |
Namespaces | |
| namespace | tannic |
Functions | |
| constexpr bool | tannic::operator== (Shape const &first, Shape const &second) |
| Equality comparison operator for shapes. | |
| std::ostream & | tannic::operator<< (std::ostream &os, Shape const &shape) |
Defines the tannic::Shape class for representing tensor dimensions.
This file is part of the Tannic Tensor Library and defines the Shape class, a compact, constexpr-friendly abstraction for representing the shape (i.e., dimensions) of tensors and expression-like objects. Shapes are integral to indexing, broadcasting, and tensor manipulation throughout the library.
The shape supports:
All expression-like objects in the library expose a Shape as part of their interface, making this file central to the Tannic design.