cMHN
1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
tensor
functions
where.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_TENSOR_FUNCTIONS_WHERE_H
4
#define pRC_CORE_TENSOR_FUNCTIONS_WHERE_H
5
6
#include <
prc/core/functors/loop.hpp
>
7
#include <
prc/core/functors/where.hpp
>
8
#include <
prc/core/tensor/functions/loop.hpp
>
9
10
namespace
pRC
11
{
12
template
<
class
XE
,
class
XA
,
class
XB
,
13
If<IsTensorish<RemoveReference<XE>
>> = 0,
14
If<IsTensorish<RemoveReference<XA>
>> = 0,
15
If<IsTensorish<RemoveReference<XB>
>> = 0,
16
If<IsInvocable<Loop<Where>
,
XE
,
XA
,
XB
>> = 0>
17
static
inline
constexpr
auto
where
(
XE
&&
e
,
XA
&&a,
XB
&&b)
18
{
19
return
loop<Where>
(forward<XE>(
e
), forward<XA>(a), forward<XB>(b));
20
}
21
}
22
#endif
// pRC_CORE_TENSOR_FUNCTIONS_WHERE_H
loop.hpp
loop.hpp
where.hpp
pRC
Definition
cholesky.hpp:18
pRC::makeConstantSequence
static constexpr auto makeConstantSequence()
Definition
sequence.hpp:402
pRC::where
static constexpr T where(TE const e, T &&a, T &&b)
Definition
where.hpp:12
Generated by
1.10.0