diff options
Diffstat (limited to 'eigen/doc/examples/make_circulant.cpp.traits')
-rw-r--r-- | eigen/doc/examples/make_circulant.cpp.traits | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/eigen/doc/examples/make_circulant.cpp.traits b/eigen/doc/examples/make_circulant.cpp.traits new file mode 100644 index 0000000..4e04535 --- /dev/null +++ b/eigen/doc/examples/make_circulant.cpp.traits @@ -0,0 +1,19 @@ +namespace Eigen { + namespace internal { + template <class ArgType> + struct traits<Circulant<ArgType> > + { + typedef Eigen::Dense StorageKind; + typedef Eigen::MatrixXpr XprKind; + typedef typename ArgType::StorageIndex StorageIndex; + typedef typename ArgType::Scalar Scalar; + enum { + Flags = Eigen::ColMajor, + RowsAtCompileTime = ArgType::RowsAtCompileTime, + ColsAtCompileTime = ArgType::RowsAtCompileTime, + MaxRowsAtCompileTime = ArgType::MaxRowsAtCompileTime, + MaxColsAtCompileTime = ArgType::MaxRowsAtCompileTime + }; + }; + } +} |