TR-mbed 1.0
Loading...
Searching...
No Matches
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
11#ifndef EIGEN_SPECIALFUNCTIONS_ARRAYAPI_H
12#define EIGEN_SPECIALFUNCTIONS_ARRAYAPI_H
13
14namespace Eigen {
15
26template<typename Derived,typename ExponentDerived>
29{
31 a.derived(),
32 x.derived()
33 );
34}
35
49template <typename Derived, typename ExponentDerived>
53 a.derived(),
54 x.derived());
55}
56
70template <typename AlphaDerived, typename SampleDerived>
77
88template<typename Derived,typename ExponentDerived>
91{
93 a.derived(),
94 x.derived()
95 );
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()
110template<typename DerivedN,typename DerivedX>
113{
115 n.derived(),
116 x.derived()
117 );
118}
119
130template<typename ArgADerived, typename ArgBDerived, typename ArgXDerived>
133{
134 return Eigen::CwiseTernaryOp<Eigen::internal::scalar_betainc_op<typename ArgXDerived::Scalar>, const ArgADerived, const ArgBDerived, const ArgXDerived>(
135 a.derived(),
136 b.derived(),
137 x.derived()
138 );
139}
140
141
154template<typename DerivedX,typename DerivedQ>
157{
159 x.derived(),
160 q.derived()
161 );
162}
163
164
165} // end namespace Eigen
166
167#endif // EIGEN_SPECIALFUNCTIONS_ARRAYAPI_H
ArrayXXi a
Definition Array_initializer_list_23_cxx11.cpp:1
int n
Definition BiCGSTAB_simple.cpp:1
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
Scalar * b
Definition benchVecAdd.cpp:17
Base class for all 1D and 2D array, and related expressions.
Definition ArrayBase.h:41
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition CwiseBinaryOp.h:84
Generic expression where a coefficient-wise ternary operator is applied to two expressions.
Definition CwiseTernaryOp.h:88
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Definition gnuplot_common_settings.hh:12
RealScalar alpha
Definition level1_cplx_impl.h:147
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
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:112
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:51
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:28
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorCwiseTernaryOp< internal::scalar_betainc_op< typename XDerived::Scalar >, const ADerived, const BDerived, const XDerived > betainc(const ADerived &a, const BDerived &b, const XDerived &x)
Definition TensorGlobalFunctions.h:24
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:72
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:156
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:90