pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
prc
core
basic
functions
less.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_BASIC_FUNCTIONS_LESS_H
4
#define pRC_CORE_BASIC_FUNCTIONS_LESS_H
5
6
#include <
prc/core/basic/functions/zero.hpp
>
7
#include <
prc/core/basic/type_traits.hpp
>
8
9
namespace
pRC
10
{
11
template
<
class
X>
12
static
inline
constexpr
auto
operator<
(
X
&&a,
Zero<>
const
)
13
{
14
return
forward<X>
(a) <
zero<RemoveReference<X>
>();
15
}
16
17
template
<
class
X>
18
static
inline
constexpr
auto
operator<
(
Zero<>
const
,
X
&&b)
19
{
20
return
zero<RemoveReference<X>
>() <
forward<X>
(b);
21
}
22
23
static
inline
constexpr
auto
operator<
(
Zero<>
const
,
Zero<>
const
)
24
{
25
return
false
;
26
}
27
}
28
#endif
// pRC_CORE_BASIC_FUNCTIONS_LESS_H
zero.hpp
type_traits.hpp
pRC
Definition
cholesky.hpp:18
pRC::operator<
static constexpr auto operator<(X &&a, Zero<> const)
Definition
less.hpp:12
pRC::copy
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition
copy.hpp:13
pRC::Zero
Definition
type_traits.hpp:268
Generated by
1.9.8