Austin Schuh | 189376f | 2018-12-20 22:11:15 +1100 | [diff] [blame^] | 1 | // This file is part of Eigen, a lightweight C++ template library |
| 2 | // for linear algebra. |
| 3 | // |
| 4 | // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> |
| 5 | // Copyright (C) 2013 Christian Seiler <christian@iwakd.de> |
| 6 | // |
| 7 | // This Source Code Form is subject to the terms of the Mozilla |
| 8 | // Public License v. 2.0. If a copy of the MPL was not distributed |
| 9 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 10 | |
| 11 | //#ifndef EIGEN_CXX11_TENSOR_MODULE |
| 12 | //#define EIGEN_CXX11_TENSOR_MODULE |
| 13 | |
| 14 | #include "../../../Eigen/Core" |
| 15 | |
| 16 | #ifdef EIGEN_USE_SYCL |
| 17 | #undef min |
| 18 | #undef max |
| 19 | #undef isnan |
| 20 | #undef isinf |
| 21 | #undef isfinite |
| 22 | #include <SYCL/sycl.hpp> |
| 23 | #include <map> |
| 24 | #include <memory> |
| 25 | #include <utility> |
| 26 | #endif |
| 27 | |
| 28 | #include <Eigen/src/Core/util/DisableStupidWarnings.h> |
| 29 | |
| 30 | #include "../SpecialFunctions" |
| 31 | #include "src/util/CXX11Meta.h" |
| 32 | #include "src/util/MaxSizeVector.h" |
| 33 | |
| 34 | /** \defgroup CXX11_Tensor_Module Tensor Module |
| 35 | * |
| 36 | * This module provides a Tensor class for storing arbitrarily indexed |
| 37 | * objects. |
| 38 | * |
| 39 | * \code |
| 40 | * #include <Eigen/CXX11/Tensor> |
| 41 | * \endcode |
| 42 | * |
| 43 | * Much of the documentation can be found \ref eigen_tensors "here". |
| 44 | */ |
| 45 | |
| 46 | #include <cmath> |
| 47 | #include <cstddef> |
| 48 | #include <cstring> |
| 49 | |
| 50 | #ifdef _WIN32 |
| 51 | typedef __int16 int16_t; |
| 52 | typedef unsigned __int16 uint16_t; |
| 53 | typedef __int32 int32_t; |
| 54 | typedef unsigned __int32 uint32_t; |
| 55 | typedef __int64 int64_t; |
| 56 | typedef unsigned __int64 uint64_t; |
| 57 | #else |
| 58 | #include <stdint.h> |
| 59 | #endif |
| 60 | |
| 61 | #if __cplusplus > 199711 || EIGEN_COMP_MSVC >= 1900 |
| 62 | #include <random> |
| 63 | #endif |
| 64 | |
| 65 | #ifdef _WIN32 |
| 66 | #include <windows.h> |
| 67 | #elif defined(__APPLE__) |
| 68 | #include <mach/mach_time.h> |
| 69 | #else |
| 70 | #include <time.h> |
| 71 | #endif |
| 72 | |
| 73 | #ifdef EIGEN_USE_THREADS |
| 74 | #include "ThreadPool" |
| 75 | #endif |
| 76 | |
| 77 | #ifdef EIGEN_USE_GPU |
| 78 | #include <iostream> |
| 79 | #include <cuda_runtime.h> |
| 80 | #if __cplusplus >= 201103L |
| 81 | #include <atomic> |
| 82 | #include <unistd.h> |
| 83 | #endif |
| 84 | #endif |
| 85 | |
| 86 | #include "src/Tensor/TensorMacros.h" |
| 87 | #include "src/Tensor/TensorForwardDeclarations.h" |
| 88 | #include "src/Tensor/TensorMeta.h" |
| 89 | #include "src/Tensor/TensorFunctors.h" |
| 90 | #include "src/Tensor/TensorCostModel.h" |
| 91 | #include "src/Tensor/TensorDeviceDefault.h" |
| 92 | #include "src/Tensor/TensorDeviceThreadPool.h" |
| 93 | #include "src/Tensor/TensorDeviceCuda.h" |
| 94 | #include "src/Tensor/TensorDeviceSycl.h" |
| 95 | #include "src/Tensor/TensorIndexList.h" |
| 96 | #include "src/Tensor/TensorDimensionList.h" |
| 97 | #include "src/Tensor/TensorDimensions.h" |
| 98 | #include "src/Tensor/TensorInitializer.h" |
| 99 | #include "src/Tensor/TensorTraits.h" |
| 100 | #include "src/Tensor/TensorRandom.h" |
| 101 | #include "src/Tensor/TensorUInt128.h" |
| 102 | #include "src/Tensor/TensorIntDiv.h" |
| 103 | #include "src/Tensor/TensorGlobalFunctions.h" |
| 104 | |
| 105 | #include "src/Tensor/TensorBase.h" |
| 106 | |
| 107 | #include "src/Tensor/TensorEvaluator.h" |
| 108 | #include "src/Tensor/TensorExpr.h" |
| 109 | #include "src/Tensor/TensorReduction.h" |
| 110 | #include "src/Tensor/TensorReductionCuda.h" |
| 111 | #include "src/Tensor/TensorArgMax.h" |
| 112 | #include "src/Tensor/TensorConcatenation.h" |
| 113 | #include "src/Tensor/TensorContractionMapper.h" |
| 114 | #include "src/Tensor/TensorContractionBlocking.h" |
| 115 | #include "src/Tensor/TensorContraction.h" |
| 116 | #include "src/Tensor/TensorContractionThreadPool.h" |
| 117 | #include "src/Tensor/TensorContractionCuda.h" |
| 118 | #include "src/Tensor/TensorConversion.h" |
| 119 | #include "src/Tensor/TensorConvolution.h" |
| 120 | #include "src/Tensor/TensorFFT.h" |
| 121 | #include "src/Tensor/TensorPatch.h" |
| 122 | #include "src/Tensor/TensorImagePatch.h" |
| 123 | #include "src/Tensor/TensorVolumePatch.h" |
| 124 | #include "src/Tensor/TensorBroadcasting.h" |
| 125 | #include "src/Tensor/TensorChipping.h" |
| 126 | #include "src/Tensor/TensorInflation.h" |
| 127 | #include "src/Tensor/TensorLayoutSwap.h" |
| 128 | #include "src/Tensor/TensorMorphing.h" |
| 129 | #include "src/Tensor/TensorPadding.h" |
| 130 | #include "src/Tensor/TensorReverse.h" |
| 131 | #include "src/Tensor/TensorShuffling.h" |
| 132 | #include "src/Tensor/TensorStriding.h" |
| 133 | #include "src/Tensor/TensorCustomOp.h" |
| 134 | #include "src/Tensor/TensorEvalTo.h" |
| 135 | #include "src/Tensor/TensorForcedEval.h" |
| 136 | #include "src/Tensor/TensorGenerator.h" |
| 137 | #include "src/Tensor/TensorAssign.h" |
| 138 | #include "src/Tensor/TensorScan.h" |
| 139 | |
| 140 | #include "src/Tensor/TensorSycl.h" |
| 141 | #include "src/Tensor/TensorExecutor.h" |
| 142 | #include "src/Tensor/TensorDevice.h" |
| 143 | |
| 144 | #include "src/Tensor/TensorStorage.h" |
| 145 | #include "src/Tensor/Tensor.h" |
| 146 | #include "src/Tensor/TensorFixedSize.h" |
| 147 | #include "src/Tensor/TensorMap.h" |
| 148 | #include "src/Tensor/TensorRef.h" |
| 149 | |
| 150 | #include "src/Tensor/TensorIO.h" |
| 151 | |
| 152 | #include <Eigen/src/Core/util/ReenableStupidWarnings.h> |
| 153 | |
| 154 | //#endif // EIGEN_CXX11_TENSOR_MODULE |