From e3e2cf9d243e9dc59531240690e66c89f49d418e Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Wed, 14 Oct 2020 01:56:42 +0000 Subject: Add MatrixBase::cwiseArg() --- doc/CoeffwiseMathFunctionsTable.dox | 14 ++++++++++++++ doc/snippets/MatrixBase_cwiseArg.cpp | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 doc/snippets/MatrixBase_cwiseArg.cpp (limited to 'doc') diff --git a/doc/CoeffwiseMathFunctionsTable.dox b/doc/CoeffwiseMathFunctionsTable.dox index d6ad06f3a..3f5c56446 100644 --- a/doc/CoeffwiseMathFunctionsTable.dox +++ b/doc/CoeffwiseMathFunctionsTable.dox @@ -73,6 +73,20 @@ This also means that, unless specified, if the function \c std::foo is available All engines (fc,fd) + + + \anchor cwisetable_arg + a.\link ArrayBase::arg arg\endlink(); \n + \link Eigen::arg arg\endlink(a); \n + m.\link MatrixBase::cwiseArg cwiseArg\endlink(); + + phase angle of complex number + + using std::arg; \n + arg(a[i]); + + All engines (fc,fd) + Exponential functions diff --git a/doc/snippets/MatrixBase_cwiseArg.cpp b/doc/snippets/MatrixBase_cwiseArg.cpp new file mode 100644 index 000000000..e0857cf97 --- /dev/null +++ b/doc/snippets/MatrixBase_cwiseArg.cpp @@ -0,0 +1,3 @@ +MatrixXcf v = MatrixXcf::Random(2, 3); +cout << v << endl << endl; +cout << v.cwiseArg() << endl; \ No newline at end of file -- cgit v1.2.3