chromium/third_party/eigen3/src/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h

// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2014 Benoit Steiner <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef EIGEN_CXX11_TENSOR_TENSOR_FORCED_EVAL_H
#define EIGEN_CXX11_TENSOR_TENSOR_FORCED_EVAL_H

// IWYU pragma: private
#include "./InternalHeaderCheck.h"

#include <memory>

namespace Eigen {

/** \class TensorForcedEval
 * \ingroup CXX11_Tensor_Module
 *
 * \brief Tensor reshaping class.
 *
 *
 */
namespace internal {
traits<TensorForcedEvalOp<XprType>>;

eval<TensorForcedEvalOp<XprType>, Eigen::Dense>;

nested<TensorForcedEvalOp<XprType>, 1, typename eval<TensorForcedEvalOp<XprType>>::type>;

}  // end namespace internal

template <typename XprType>
class TensorForcedEvalOp : public TensorBase<TensorForcedEvalOp<XprType>, ReadOnlyAccessors> {};

namespace internal {
template <typename Device, typename CoeffReturnType>
struct non_integral_type_placement_new {};

// SYCL does not support non-integral types
// having new (m_buffer + i) CoeffReturnType() causes the following compiler error for SYCL Devices
// no matching function for call to 'operator new'
non_integral_type_placement_new<Eigen::SyclDevice, CoeffReturnType>;
}  // end namespace internal

template <typename Device>
class DeviceTempPointerHolder {};

TensorEvaluator<const TensorForcedEvalOp<ArgType_>, Device>;

}  // end namespace Eigen

#endif  // EIGEN_CXX11_TENSOR_TENSOR_FORCED_EVAL_H