tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
permuted_view_constexpr_traits.h
Go to the documentation of this file.
1#pragma once
2
3#include "helper_traits.h"
4
5template <typename Tensor, my_size_t... Perm>
6class PermutedViewConstExpr; // forward declarations
7
8namespace expression
9{
10 template <typename Tensor, my_size_t... Perm>
11 struct traits<PermutedViewConstExpr<Tensor, Perm...>>
12 {
13 static constexpr bool IsPermuted = !is_sequential<Perm...>();
14 static constexpr bool IsContiguous = !IsPermuted;
15 static constexpr bool IsPhysical = true;
16 };
17} // namespace expression
Compile-time permuted view over a tensor.
Definition permuted_view_constexpr.h:36
#define my_size_t
Size/index type used throughout the library.
Definition config.h:126
consteval bool is_sequential()
Check if a pack forms the identity permutation {0, 1, …, N−1}.
Definition helper_traits.h:154
Definition basic_expr_traits.h:4
Definition basic_expr_traits.h:6