|
Tannic
A C++ Tensor Library
|
Implements tensor slicing for expression templates in the Tannic Tensor Library. More...
#include <tuple>#include <utility>#include <cstddef>#include <vector>#include "types.hpp"#include "traits.hpp"#include "shape.hpp"#include "strides.hpp"#include "indexing.hpp"

Go to the source code of this file.
Classes | |
| class | tannic::expression::Slice< Source, Indexes > |
| Expression template representing a tensor slice or subview. More... | |
Namespaces | |
| namespace | tannic |
| namespace | tannic::expression |
Functions | |
| template<typename T > | |
| std::byte const * | tannic::expression::tobytes (T const &reference) |
Implements tensor slicing for expression templates in the Tannic Tensor Library.
This header defines the Slice class template, which represents a view or subrange of a tensor without copying its data. It supports chained indexing, assignment, and comparison operations while preserving the underlying expression structure.
Key features:
Example usage: