mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
New doc page on implementing a new expression class.
This commit is contained in:
19
doc/examples/make_circulant.cpp.traits
Normal file
19
doc/examples/make_circulant.cpp.traits
Normal file
@@ -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::Index Index;
|
||||
typedef typename ArgType::Scalar Scalar;
|
||||
enum {
|
||||
Flags = Eigen::ColMajor,
|
||||
RowsAtCompileTime = ArgType::RowsAtCompileTime,
|
||||
ColsAtCompileTime = ArgType::RowsAtCompileTime,
|
||||
MaxRowsAtCompileTime = ArgType::MaxRowsAtCompileTime,
|
||||
MaxColsAtCompileTime = ArgType::MaxRowsAtCompileTime
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user