SpecialFunctionsArrayAPI.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2016 Gael Guennebaud <gael.guennebaud@inria.fr>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_SPECIALFUNCTIONS_ARRAYAPI_H
11 #define EIGEN_SPECIALFUNCTIONS_ARRAYAPI_H
12 
13 // IWYU pragma: private
14 #include "./InternalHeaderCheck.h"
15 
16 namespace Eigen {
17 
28 template <typename Derived, typename ExponentDerived>
30  const Derived, const ExponentDerived>
33  const ExponentDerived>(a.derived(), x.derived());
34 }
35 
49 template <typename Derived, typename ExponentDerived>
51  const Derived, const ExponentDerived>
54  const ExponentDerived>(a.derived(), x.derived());
55 }
56 
71 template <typename AlphaDerived, typename SampleDerived>
74  const AlphaDerived, const SampleDerived>
77  const AlphaDerived, const SampleDerived>(alpha.derived(), sample.derived());
78 }
79 
90 template <typename Derived, typename ExponentDerived>
92  const Derived, const ExponentDerived>
95  const ExponentDerived>(a.derived(), x.derived());
96 }
97 
108 // * \warning Be careful with the order of the parameters: x.polygamma(n) is equivalent to polygamma(n,x)
109 // * \sa ArrayBase::polygamma()
110 template <typename DerivedN, typename DerivedX>
112  const DerivedN, const DerivedX>
115  const DerivedX>(n.derived(), x.derived());
116 }
117 
128 template <typename ArgADerived, typename ArgBDerived, typename ArgXDerived>
130  const ArgADerived, const ArgBDerived, const ArgXDerived>
134  const ArgBDerived, const ArgXDerived>(a.derived(), b.derived(), x.derived());
135 }
136 
149 template <typename DerivedX, typename DerivedQ>
154  const DerivedQ>(x.derived(), q.derived());
155 }
156 
157 } // end namespace Eigen
158 
159 #endif // EIGEN_SPECIALFUNCTIONS_ARRAYAPI_H
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
#define EIGEN_STRONG_INLINE
Definition: Macros.h:834
Scalar * b
Definition: benchVecAdd.cpp:17
Base class for all 1D and 2D array, and related expressions.
Definition: ArrayBase.h:44
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition: CwiseBinaryOp.h:79
Generic expression where a coefficient-wise ternary operator is applied to two expressions.
Definition: CwiseTernaryOp.h:86
RealScalar alpha
Definition: level1_cplx_impl.h:151
const Scalar * a
Definition: level2_cplx_impl.h:32
EIGEN_DEVICE_FUNC const Scalar & q
Definition: SpecialFunctionsImpl.h:2019
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_zeta_op< typename DerivedX::Scalar >, const DerivedX, const DerivedQ > zeta(const Eigen::ArrayBase< DerivedX > &x, const Eigen::ArrayBase< DerivedQ > &q)
Definition: SpecialFunctionsArrayAPI.h:152
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_igammac_op< typename Derived::Scalar >, const Derived, const ExponentDerived > igammac(const Eigen::ArrayBase< Derived > &a, const Eigen::ArrayBase< ExponentDerived > &x)
Definition: SpecialFunctionsArrayAPI.h:93
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_igamma_op< typename Derived::Scalar >, const Derived, const ExponentDerived > igamma(const Eigen::ArrayBase< Derived > &a, const Eigen::ArrayBase< ExponentDerived > &x)
Definition: SpecialFunctionsArrayAPI.h:31
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_polygamma_op< typename DerivedX::Scalar >, const DerivedN, const DerivedX > polygamma(const Eigen::ArrayBase< DerivedN > &n, const Eigen::ArrayBase< DerivedX > &x)
Definition: SpecialFunctionsArrayAPI.h:113
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorCwiseTernaryOp< internal::scalar_betainc_op< typename XDerived::Scalar >, const ADerived, const BDerived, const XDerived > betainc(const Eigen::TensorBase< ADerived, ReadOnlyAccessors > &a, const Eigen::TensorBase< BDerived, ReadOnlyAccessors > &b, const Eigen::TensorBase< XDerived, ReadOnlyAccessors > &x)
Definition: TensorGlobalFunctions.h:26
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_gamma_sample_der_alpha_op< typename AlphaDerived::Scalar >, const AlphaDerived, const SampleDerived > gamma_sample_der_alpha(const Eigen::ArrayBase< AlphaDerived > &alpha, const Eigen::ArrayBase< SampleDerived > &sample)
Definition: SpecialFunctionsArrayAPI.h:75
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_igamma_der_a_op< typename Derived::Scalar >, const Derived, const ExponentDerived > igamma_der_a(const Eigen::ArrayBase< Derived > &a, const Eigen::ArrayBase< ExponentDerived > &x)
Definition: SpecialFunctionsArrayAPI.h:52
list x
Definition: plotDoE.py:28