6 template<
int D,
class T>
8 static const T&
apply(
const T& in) {
return in;}
9 static T&
apply(T& in) {
return in;}
14 static const typename std::remove_reference<decltype(std::declval<T>()[0])>::type&
apply(
const T& in) {
return in[0];}
15 static decltype(std::declval<T>()[0])
apply(T& in) {
return in[0];}
21 return nodes.template block<D,1>(0,l);
32 template<
int D,
class T>
34 static const T&
apply(
const T& t) {
41 static T
apply(
const typename std::remove_reference<decltype(std::declval<T>()[0])>::type& t) {
Definition: coefficients_file_parser.cpp:10
static T apply(const typename std::remove_reference< decltype(std::declval< T >()[0])>::type &t)
Definition: squeeze.hpp:41
Basis< N, D, 1 > Eigen
Collection of types associated with a matrix potential in eigen basis.
Definition: bases.hpp:47
std::complex< real_t > complex_t
Definition: types.hpp:15
static const complex_t & apply(const CMatrix< 1, Eigen::Dynamic > &nodes, int l)
Definition: squeeze.hpp:27
Definition: squeeze.hpp:33
static CMatrix< D, 1 > apply(const CMatrix< D, Eigen::Dynamic > &nodes, int l)
Definition: squeeze.hpp:20
static const T & apply(const T &t)
Definition: squeeze.hpp:34
static const T & apply(const T &in)
Definition: squeeze.hpp:8
Eigen::Matrix< complex_t, R, C > CMatrix
Definition: types.hpp:19
Definition: squeeze.hpp:7
static const std::remove_reference< decltype(std::declval< T >)[0])>::type & apply(const T &in)
Definition: squeeze.hpp:14
static T & apply(T &in)
Definition: squeeze.hpp:9