chromium/third_party/eigen3/src/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.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_CHIPPING_H
#define EIGEN_CXX11_TENSOR_TENSOR_CHIPPING_H

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

namespace Eigen {

/** \class TensorKChippingReshaping
 * \ingroup CXX11_Tensor_Module
 *
 * \brief A chip is a thin slice, corresponding to a column or a row in a 2-d tensor.
 *
 *
 */

namespace internal {
traits<TensorChippingOp<DimId, XprType>>;

eval<TensorChippingOp<DimId, XprType>, Eigen::Dense>;

nested<TensorChippingOp<DimId, XprType>, 1, typename eval<TensorChippingOp<DimId, XprType>>::type>;

template <DenseIndex DimId>
struct DimensionId {};
template <>
struct DimensionId<Dynamic> {};

}  // end namespace internal

template <DenseIndex DimId, typename XprType>
class TensorChippingOp : public TensorBase<TensorChippingOp<DimId, XprType> > {};

// Eval as rvalue
TensorEvaluator<const TensorChippingOp<DimId, ArgType>, Device>;

// Eval as lvalue
TensorEvaluator<TensorChippingOp<DimId, ArgType>, Device>;

}  // end namespace Eigen

#endif  // EIGEN_CXX11_TENSOR_TENSOR_CHIPPING_H