aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/make_circulant.cpp.entry
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2014-09-27 23:25:58 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2014-09-27 23:25:58 +0100
commitce2035af868d57b85b4078c15843d5c1f51047dc (patch)
treeca6392457ba02fa24e8f5f0ddcf755697d73d36e /doc/examples/make_circulant.cpp.entry
parent6d0f0b8cecd0ee944503d885fd34278044bab746 (diff)
New doc page on implementing a new expression class.
Diffstat (limited to 'doc/examples/make_circulant.cpp.entry')
-rw-r--r--doc/examples/make_circulant.cpp.entry5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/examples/make_circulant.cpp.entry b/doc/examples/make_circulant.cpp.entry
new file mode 100644
index 000000000..f9d2eb8a9
--- /dev/null
+++ b/doc/examples/make_circulant.cpp.entry
@@ -0,0 +1,5 @@
+template <class ArgType>
+Circulant<ArgType> makeCirculant(const Eigen::MatrixBase<ArgType>& arg)
+{
+ return Circulant<ArgType>(arg.derived());
+}