1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-19 00:07:05 +01:00

Remove warning in tensor layout comparison. Make default names and index names visible for PerambTensor and NoiseTensor

This commit is contained in:
Michael Marshall
2019-12-20 13:53:27 +00:00
parent df2b0c4e79
commit 0ca1992151
2 changed files with 3 additions and 3 deletions

View File

@ -318,7 +318,7 @@ namespace Grid {
TotalDims[TensorRank + i] = Traits::Dimension(i);
// If the Tensor isn't in Row-Major order, then we'll need to copy it's data
const bool CopyData{NumElements > 1 && ETensor::Layout != Eigen::StorageOptions::RowMajor};
const bool CopyData{NumElements > 1 && static_cast<int>( ETensor::Layout ) != static_cast<int>( Eigen::StorageOptions::RowMajor )};
const Scalar * pWriteBuffer;
std::vector<Scalar> CopyBuffer;
const Index TotalNumElements = NumElements * Traits::count;