aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-12-30 15:12:15 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-12-30 15:12:15 +0100
commitb84cefe61dcc42ca83c37bbadf0ca0463f711758 (patch)
treee8f3707df0af74a3fec7ae01572489596529f5de /doc/snippets
parent16dd82ed511ccaa1c783e71d46c1d2bcd9e19907 (diff)
Add missing snippets for erf/erfc/lgamma functions.
Diffstat (limited to 'doc/snippets')
-rw-r--r--doc/snippets/Cwise_erf.cpp2
-rw-r--r--doc/snippets/Cwise_erfc.cpp2
-rw-r--r--doc/snippets/Cwise_lgamma.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/doc/snippets/Cwise_erf.cpp b/doc/snippets/Cwise_erf.cpp
new file mode 100644
index 000000000..7f51c1b6a
--- /dev/null
+++ b/doc/snippets/Cwise_erf.cpp
@@ -0,0 +1,2 @@
+Array4d v(-0.5,2,0,-7);
+cout << v.erf() << endl;
diff --git a/doc/snippets/Cwise_erfc.cpp b/doc/snippets/Cwise_erfc.cpp
new file mode 100644
index 000000000..f0453d4b1
--- /dev/null
+++ b/doc/snippets/Cwise_erfc.cpp
@@ -0,0 +1,2 @@
+Array4d v(-0.5,2,0,-7);
+cout << v.erfc() << endl;
diff --git a/doc/snippets/Cwise_lgamma.cpp b/doc/snippets/Cwise_lgamma.cpp
new file mode 100644
index 000000000..cbc69b989
--- /dev/null
+++ b/doc/snippets/Cwise_lgamma.cpp
@@ -0,0 +1,2 @@
+Array4d v(0.5,10,0,-1);
+cout << v.lgamma() << endl; \ No newline at end of file