circulant_functor< ArgType > Class Template Reference

Public Member Functions

 circulant_functor (const ArgType &arg)
 
const ArgType::Scalaroperator() (Eigen::Index row, Eigen::Index col) const
 

Private Attributes

const ArgType & m_vec
 

Constructor & Destructor Documentation

◆ circulant_functor()

template<class ArgType >
circulant_functor< ArgType >::circulant_functor ( const ArgType &  arg)
inline
10 : m_vec(arg) {}
const ArgType & m_vec
Definition: make_circulant2.cpp:7

Member Function Documentation

◆ operator()()

template<class ArgType >
const ArgType::Scalar& circulant_functor< ArgType >::operator() ( Eigen::Index  row,
Eigen::Index  col 
) const
inline
12  {
13  Eigen::Index index = row - col;
14  if (index < 0) index += m_vec.size();
15  return m_vec(index);
16  }
m col(1)
m row(1)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83

References col(), circulant_functor< ArgType >::m_vec, and row().

Member Data Documentation

◆ m_vec

template<class ArgType >
const ArgType& circulant_functor< ArgType >::m_vec
private

The documentation for this class was generated from the following file: