From b84cefe61dcc42ca83c37bbadf0ca0463f711758 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 30 Dec 2015 15:12:15 +0100 Subject: [PATCH] Add missing snippets for erf/erfc/lgamma functions. --- doc/snippets/Cwise_erf.cpp | 2 ++ doc/snippets/Cwise_erfc.cpp | 2 ++ doc/snippets/Cwise_lgamma.cpp | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 doc/snippets/Cwise_erf.cpp create mode 100644 doc/snippets/Cwise_erfc.cpp create mode 100644 doc/snippets/Cwise_lgamma.cpp 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