make_circulant2.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 
template<class ArgType >
Eigen::CwiseNullaryOp< circulant_functor< ArgType >, typename circulant_helper< ArgType >::MatrixTypemakeCirculant (const Eigen::MatrixBase< ArgType > &arg)
 

Function Documentation

◆ main()

int main ( )

Definition at line 42 of file make_circulant2.cpp.

43 {
44  Eigen::VectorXd vec(4);
45  vec << 1, 2, 4, 8;
47  mat = makeCirculant(vec);
48  std::cout << mat << std::endl;
49 }
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182
Eigen::CwiseNullaryOp< circulant_functor< ArgType >, typename circulant_helper< ArgType >::MatrixType > makeCirculant(const Eigen::MatrixBase< ArgType > &arg)

◆ makeCirculant()

template<class ArgType >
Eigen::CwiseNullaryOp<circulant_functor<ArgType>, typename circulant_helper<ArgType>::MatrixType> makeCirculant ( const Eigen::MatrixBase< ArgType > &  arg)

Definition at line 34 of file make_circulant2.cpp.

35 {
37  return MatrixType::NullaryExpr(arg.size(), arg.size(), circulant_functor<ArgType>(arg.derived()));
38 }
const ArgReturnType arg() const
Matrix< float, 1, Dynamic > MatrixType