pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
prc
core
basic
position.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_BASIC_POSITION_H
4
#define pRC_CORE_BASIC_POSITION_H
5
6
namespace
pRC
7
{
8
enum class
Position
9
{
10
Left
,
11
Right
,
12
Front
,
13
Back
,
14
};
15
16
static
inline
constexpr
auto
operator!
(
Position
const
P
)
17
{
18
switch
(
P
)
19
{
20
case
Position::Left
:
21
return
Position::Right
;
22
case
Position::Right
:
23
return
Position::Left
;
24
case
Position::Front
:
25
return
Position::Back
;
26
case
Position::Back
:
27
return
Position::Front
;
28
}
29
}
30
}
31
#endif
// pRC_CORE_BASIC_POSITION_H
pRC
Definition
cholesky.hpp:18
pRC::copy
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition
copy.hpp:13
pRC::Position
Position
Definition
position.hpp:9
pRC::Position::Back
@ Back
pRC::Position::Front
@ Front
pRC::Position::Right
@ Right
pRC::Position::Left
@ Left
pRC::operator!
static constexpr auto operator!(Position const P)
Definition
position.hpp:16
Generated by
1.9.8