3#ifndef cMHN_TT_MHN_OPERATOR_H
4#define cMHN_TT_MHN_OPERATOR_H
22 template<
class T, pRC::Size D>
36 return mBigTheta(
i, j);
51 return log(mBigTheta(
i, j));
56 return eval(log(mBigTheta));
65 [
this, &ret,
i](
auto const j)
74 template<pRC::Index i>
75 constexpr auto core()
const
78 [&](
auto const... seq)
91 [
this, &ret,
i, j](
auto const m)
124 c(0, 0, 0, 0) = -mBigTheta(
i,
i);
125 c(0, 1, 0, 0) = mBigTheta(
i,
i);
130 c(0, 1, 1, 0) = mBigTheta(
i, j);
143 c(0, 0, 0, 0) = -mBigTheta(
i, m);
144 c(0, 1, 0, 0) = mBigTheta(
i, m);
148 c(0, 1, 1, 0) = mBigTheta(
i, m);
155 c(0, 0, 0, 0) = -mBigTheta(
i, m);
156 c(0, 1, 0, 0) = mBigTheta(
i, m);
161 c(0, 1, 1, 0) = mBigTheta(
i, m);
Class storing an MHN operator represented by a theta matrix (for TT calculations)
Definition mhn_operator.hpp:24
constexpr auto term(pRC::Index const i) const
Definition mhn_operator.hpp:61
constexpr auto smallTheta() const
Definition mhn_operator.hpp:54
auto & bigTheta()
Definition mhn_operator.hpp:44
constexpr auto & bigTheta() const
Definition mhn_operator.hpp:39
constexpr MHNOperator(pRC::Tensor< T, D, D > const &smallTheta)
Definition mhn_operator.hpp:29
constexpr auto & bigTheta(pRC::Index const i, pRC::Index const j) const
Definition mhn_operator.hpp:34
constexpr auto derivative(pRC::Index const i, pRC::Index const j) const
Definition mhn_operator.hpp:87
constexpr auto core() const
Definition mhn_operator.hpp:75
constexpr auto smallTheta(pRC::Index const i, pRC::Index const j) const
Definition mhn_operator.hpp:49
Definition sequence.hpp:29
pRC::Float<> T
Definition externs_nonTT.hpp:1
int i
Definition gmock-matchers-comparisons_test.cc:603
Operator(OperatorViews::View< T, M, N, Ranks, F > const &) -> Operator< T, M, N, Ranks >
static constexpr auto makeConstantSequence()
Definition sequence.hpp:444
Size Index
Definition basics.hpp:32
std::size_t Size
Definition basics.hpp:31
static constexpr auto makeSeries()
Definition sequence.hpp:390
static constexpr auto range(F &&f, Xs &&...args)
Definition range.hpp:18
static constexpr auto identity()
Definition identity.hpp:13
static constexpr auto zero()
Definition zero.hpp:12