mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-07 00:08:06 +01:00
Transpose always returns self image
This commit is contained in:
1 parent
ddd93a0576
commit
53ba8d4926
1 file changed
+1
-2
@@ -24,8 +24,7 @@ PARALLEL_FOR_LOOP
|
|||||||
// Index level dependent transpose
|
// Index level dependent transpose
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
template<int Index,class vobj>
|
template<int Index,class vobj>
|
||||||
inline auto transposeIndex(const Lattice<vobj> &lhs)
|
inline auto transposeIndex(const Lattice<vobj> &lhs) -> Lattice<decltype(transposeIndex<Index>(lhs._odata[0]))>
|
||||||
-> Lattice<decltype(transposeIndex<Index>(lhs._odata[0]))>
|
|
||||||
{
|
{
|
||||||
Lattice<decltype(transposeIndex<Index>(lhs._odata[0]))> ret(lhs._grid);
|
Lattice<decltype(transposeIndex<Index>(lhs._odata[0]))> ret(lhs._grid);
|
||||||
PARALLEL_FOR_LOOP
|
PARALLEL_FOR_LOOP
|
||||||
|
|||||||
Reference in new issue
Block a user