mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
eigen_strong_inline gone
This commit is contained in:
parent
271a02230e
commit
9f75065205
@ -65,13 +65,13 @@ public:
|
|||||||
const std::array<std::string, NumIndices_> &DefaultIndexNames_;
|
const std::array<std::string, NumIndices_> &DefaultIndexNames_;
|
||||||
|
|
||||||
// Default constructor (assumes tensor will be loaded from file)
|
// Default constructor (assumes tensor will be loaded from file)
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NamedTensor(const std::string &Name,
|
NamedTensor(const std::string &Name,
|
||||||
const std::array<std::string, NumIndices_> &indexNames)
|
const std::array<std::string, NumIndices_> &indexNames)
|
||||||
: IndexNames{indexNames.begin(), indexNames.end()}, Name_{Name}, DefaultIndexNames_{indexNames} {}
|
: IndexNames{indexNames.begin(), indexNames.end()}, Name_{Name}, DefaultIndexNames_{indexNames} {}
|
||||||
|
|
||||||
// Construct a named tensor explicitly specifying size of each dimension
|
// Construct a named tensor explicitly specifying size of each dimension
|
||||||
template<typename... IndexTypes>
|
template<typename... IndexTypes>
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NamedTensor(const std::string &Name,
|
NamedTensor(const std::string &Name,
|
||||||
const std::array<std::string, NumIndices_> &indexNames,
|
const std::array<std::string, NumIndices_> &indexNames,
|
||||||
Eigen::Index firstDimension, IndexTypes... otherDimensions)
|
Eigen::Index firstDimension, IndexTypes... otherDimensions)
|
||||||
: tensor(firstDimension, otherDimensions...),
|
: tensor(firstDimension, otherDimensions...),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user