TensorGlobalFunctions.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 Eugene Brevdo <ebrevdo@gmail.com>
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_CXX11_TENSOR_TENSOR_GLOBAL_FUNCTIONS_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_GLOBAL_FUNCTIONS_H
12 
13 #include "./InternalHeaderCheck.h"
14 
15 namespace Eigen {
16 
22 template <typename ADerived, typename BDerived, typename XDerived>
23 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const
24  TensorCwiseTernaryOp<internal::scalar_betainc_op<typename XDerived::Scalar>,
25  const ADerived, const BDerived, const XDerived>
26  betainc(const ADerived& a, const BDerived& b, const XDerived& x) {
27  return TensorCwiseTernaryOp<
28  internal::scalar_betainc_op<typename XDerived::Scalar>, const ADerived,
29  const BDerived, const XDerived>(
30  a, b, x, internal::scalar_betainc_op<typename XDerived::Scalar>());
31 }
32 
33 } // end namespace Eigen
34 
35 #endif // EIGEN_CXX11_TENSOR_TENSOR_GLOBAL_FUNCTIONS_H
ArrayXXi a
#define EIGEN_DEVICE_FUNC
: TensorContractionSycl.h, provides various tensor contraction kernel for SYCL backend
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)