11 #ifndef GEOMETRY_CHAIN_HPP
12 #define GEOMETRY_CHAIN_HPP
15 #include "../Terms/TermsTypeConverter.hpp"
16 #include "../Terms/TermsTypeEnum.hpp"
52 arma::SpMat<T> ret(L, L);
53 for (
int i = 0; i < L - 1; i++)
54 ret(i, i + 1) = value;
65 void Create(
int L, std::string key, T value)
override
67 arma::SpMat<T> tmp(L, L);
71 for (
int i = 0; i < L; i++)
101 for (
auto const &[key, value] : param)
113 for (
auto const &[key, value] : param)
Geometry parrent class.
Definition: Geometry.hpp:55
void Create(int L, std::string key, T value) override
Create Chain (IGeometry) object.
Definition: Chain.hpp:65
Chain(int L, uniformParameters< T > ¶m)
Construct a new Chain object.
Definition: Chain.hpp:111
Chain (IGeometry implementation) class.
Definition: Chain.hpp:37
std::initializer_list< std::pair< const std::string, T >> initList
typedef for initializer_list
Definition: Geometry.hpp:28
Parameters< T > parameters
Definition: Geometry.hpp:59
static std::map< std::string, TermsTypeEnum > dict
Dict which contains std::map between label and TermsTypeEnum.
Definition: TermsTypeConverter.hpp:42
Interface for Geometry class.
Definition: Geometry.hpp:44
std::map< std::string, T > uniformParameters
typedef for map<std::string, T>
Definition: Geometry.hpp:36
Chain(int L, initList< T > param)
Construct a new Chain object.
Definition: Chain.hpp:99
arma::SpMat< T > ChainAdjacency(int L, T value)
Chain Adjacency function for Nonlocal Terms.
Definition: Chain.hpp:50