tesseract++
0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
core
include
expression_traits
permuted_view_constexpr_traits.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
helper_traits.h
"
4
5
template
<
typename
Tensor,
my_size_t
... Perm>
6
class
PermutedViewConstExpr
;
// forward declarations
7
8
namespace
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
PermutedViewConstExpr
Compile-time permuted view over a tensor.
Definition
permuted_view_constexpr.h:36
my_size_t
#define my_size_t
Size/index type used throughout the library.
Definition
config.h:126
helper_traits.h
is_sequential
consteval bool is_sequential()
Check if a pack forms the identity permutation {0, 1, …, N−1}.
Definition
helper_traits.h:154
expression
Definition
basic_expr_traits.h:4
expression::traits
Definition
basic_expr_traits.h:6
Generated by
1.9.8