cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
print.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_TENSOR_TRAIN_COMMON_FUNCTIONS_PRINT_H
4#define pRC_TENSOR_TRAIN_COMMON_FUNCTIONS_PRINT_H
5
10
11namespace pRC
12{
13 template<class X, class S, class R = RemoveReference<X>>
14 requires TensorTrain::IsTensorish<R> || TensorTrain::IsOperatorish<R>
15 static inline void print(X &&arg, S &&stream)
16 {
17 print(name<ResultOf<Eval, R>>(), stream);
18 print(":\n", stream);
19
21 [&arg, &stream](auto const c)
22 {
23 print(arg.template core<c>(), stream);
24 });
25 }
26}
27#endif // pRC_TENSOR_TRAIN_COMMON_FUNCTIONS_PRINT_H
TN::Subscripts S
Definition externs_nonTT.hpp:9
Definition cholesky.hpp:10
std::invoke_result_t< F, Args... > ResultOf
Definition basics.hpp:59
static auto print(String< N > const &string, std::FILE *stream)
Definition print.hpp:18
static constexpr auto name()
Definition type_name.hpp:11
static constexpr auto arg(T const &a)
Definition arg.hpp:11
static constexpr auto range(F &&f, Xs &&...args)
Definition range.hpp:18