TensorGlobalFunctions.h
00001 // This file is part of Eigen, a lightweight C++ template library
00002 // for linear algebra.
00003 //
00004 // Copyright (C) 2016 Eugene Brevdo <ebrevdo@gmail.com>
00005 //
00006 // This Source Code Form is subject to the terms of the Mozilla
00007 // Public License v. 2.0. If a copy of the MPL was not distributed
00008 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
00009 
00010 #ifndef EIGEN_CXX11_TENSOR_TENSOR_GLOBAL_FUNCTIONS_H
00011 #define EIGEN_CXX11_TENSOR_TENSOR_GLOBAL_FUNCTIONS_H
00012 
00013 namespace Eigen {
00014 
00020 template <typename ADerived, typename BDerived, typename XDerived>
00021 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const
00022     TensorCwiseTernaryOp<internal::scalar_betainc_op<typename XDerived::Scalar>,
00023                          const ADerived, const BDerived, const XDerived>
00024     betainc(const ADerived& a, const BDerived& b, const XDerived& x) {
00025   return TensorCwiseTernaryOp<
00026       internal::scalar_betainc_op<typename XDerived::Scalar>, const ADerived,
00027       const BDerived, const XDerived>(
00028       a, b, x, internal::scalar_betainc_op<typename XDerived::Scalar>());
00029 }
00030 
00031 } // end namespace Eigen
00032 
00033 #endif // EIGEN_CXX11_TENSOR_TENSOR_GLOBAL_FUNCTIONS_H
 All Classes Functions Variables Typedefs Enumerator