cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
zero.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_ZERO_H
4#define pRC_CORE_TENSOR_ZERO_H
5
10
11namespace pRC
12{
13 template<IsTensor T>
14 struct Zero<T>
15 {
16 constexpr auto operator()() const
17 {
18 auto const f = []()
19 {
21 };
22 using F = RemoveConstReference<decltype(f)>;
23 using Sizes = typename T::Sizes;
25 }
26 };
27
28 template<IsTensorView T>
29 struct Zero<T> : Zero<ResultOf<Eval, T>>
30 {
31 };
32}
33#endif // pRC_CORE_TENSOR_ZERO_H
Definition value.hpp:12
Definition sequence.hpp:29
Definition loop.hpp:19
Definition cholesky.hpp:10
RemoveConst< RemoveReference< T > > RemoveConstReference
Definition basics.hpp:47
static constexpr auto zero()
Definition zero.hpp:12
constexpr auto operator()() const
Definition zero.hpp:16