mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
f97b3cd024
This commit adds an initial implementation of a class template Tensor that allows for the storage of objects with more than two indices. Currently, only storing data and setting the object to zero for POD data types are implemented.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
// This file is part of Eigen, a lightweight C++ template library
|
|
// for linear algebra.
|
|
//
|
|
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
|
|
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
|
|
//
|
|
// 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_MODULE
|
|
#define EIGEN_CXX11_TENSOR_MODULE
|
|
|
|
#include <Eigen/CXX11/Core>
|
|
|
|
#include <Eigen/src/Core/util/DisableStupidWarnings.h>
|
|
|
|
/** \defgroup CXX11_Tensor_Module Tensor Module
|
|
*
|
|
* This module provides a Tensor class for storing arbitrarily indexed
|
|
* objects.
|
|
*
|
|
* \code
|
|
* #include <Eigen/CXX11/Tensor>
|
|
* \endcode
|
|
*/
|
|
|
|
#include <cstddef>
|
|
#include <cstring>
|
|
|
|
#include "src/Tensor/TensorStorage.h"
|
|
#include "src/Tensor/Tensor.h"
|
|
|
|
#include <Eigen/src/Core/util/ReenableStupidWarnings.h>
|
|
|
|
#endif // EIGEN_CXX11_TENSOR_MODULE
|
|
|
|
/*
|
|
* kate: space-indent on; indent-width 2; mixedindent off; indent-mode cstyle;
|
|
*/
|