1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: 3-index RO access to Eigen disk vector

This commit is contained in:
Antonin Portelli 2018-10-16 14:44:14 +01:00
parent b3d6805638
commit 3023287fd9

View File

@ -143,6 +143,12 @@ class EigenDiskVector: public DiskVectorBase<EigenDiskVectorMat<T>>
public:
using DiskVectorBase<EigenDiskVectorMat<T>>::DiskVectorBase;
typedef EigenDiskVectorMat<T> Matrix;
public:
T operator()(const unsigned int i, const Eigen::Index j,
const Eigen::Index k) const
{
return (*this)[i](j, k);
}
private:
virtual void load(EigenDiskVectorMat<T> &obj, const std::string filename) const
{