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

// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2015 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_DIMENSION_LIST_H
#define EIGEN_CXX11_TENSOR_TENSOR_DIMENSION_LIST_H

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

namespace Eigen {

/** \internal
 *
 * \class TensorDimensionList
 * \ingroup CXX11_Tensor_Module
 *
 * \brief Special case of tensor index list used to list all the dimensions of a tensor of rank n.
 *
 * \sa Tensor
 */

template <typename Index, std::size_t Rank>
struct DimensionList {};

namespace internal {

array_size<DimensionList<Index, Rank>>;
array_size<const DimensionList<Index, Rank>>;

template <DenseIndex n, typename Index, std::size_t Rank>
const Index array_get(DimensionList<Index, Rank>&) {}
template <DenseIndex n, typename Index, std::size_t Rank>
const Index array_get(const DimensionList<Index, Rank>&) {}

index_known_statically_impl<DimensionList<Index, Rank>>;
index_known_statically_impl<const DimensionList<Index, Rank>>;

all_indices_known_statically_impl<DimensionList<Index, Rank>>;
all_indices_known_statically_impl<const DimensionList<Index, Rank>>;

indices_statically_known_to_increase_impl<DimensionList<Index, Rank>>;
indices_statically_known_to_increase_impl<const DimensionList<Index, Rank>>;

index_statically_eq_impl<DimensionList<Index, Rank>>;
index_statically_eq_impl<const DimensionList<Index, Rank>>;

index_statically_ne_impl<DimensionList<Index, Rank>>;
index_statically_ne_impl<const DimensionList<Index, Rank>>;

index_statically_gt_impl<DimensionList<Index, Rank>>;
index_statically_gt_impl<const DimensionList<Index, Rank>>;

index_statically_lt_impl<DimensionList<Index, Rank>>;
index_statically_lt_impl<const DimensionList<Index, Rank>>;

}  // end namespace internal
}  // end namespace Eigen

#endif  // EIGEN_CXX11_TENSOR_TENSOR_DIMENSION_LIST_H