pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
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
{
30
template
<
class
XE
,
class
XA
,
class
XB
,
31
If<IsTensorish<RemoveReference<XE>
>> = 0,
32
If<IsTensorish<RemoveReference<XA>
>> = 0,
33
If<IsTensorish<RemoveReference<XB>
>> = 0,
34
If<IsInvocable<Loop<Where>
,
XE
,
XA
,
XB
>> = 0>
35
static
inline
constexpr
auto
where
(
XE
&&
e
,
XA
&&a,
XB
&&b)
36
{
37
return
loop<Where>
(
forward<XE>
(
e
),
forward<XA>
(a),
forward<XB>
(b));
38
}
39
}
40
#endif
// pRC_CORE_TENSOR_FUNCTIONS_WHERE_H
loop.hpp
loop.hpp
where.hpp
pRC
Definition
cholesky.hpp:18
pRC::where
static constexpr T where(TE const e, T &&a, T &&b)
Definition
where.hpp:12
pRC::copy
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition
copy.hpp:13
Generated by
1.9.8