some fixes in pyProjFunction
This commit is contained in:
parent
5a5d8883b4
commit
bd8acc6ef2
2 changed files with 5 additions and 3 deletions
|
@ -61,8 +61,8 @@ namespace MultiArrayTools
|
|||
i.template getIndex<2>().getMetaPos() * i.template getIndex<2>().getMetaPos() +
|
||||
i.template getIndex<3>().getMetaPos() * i.template getIndex<3>().getMetaPos() );
|
||||
|
||||
si.atMeta( i.template getIndex<1>().getMetaPos() * i.template getIndex<0>().getMetaPos()[0]
|
||||
i.template getIndex<2>().getMetaPos() * i.template getIndex<0>().getMetaPos()[1]
|
||||
si.atMeta( i.template getIndex<1>().getMetaPos() * i.template getIndex<0>().getMetaPos()[0] +
|
||||
i.template getIndex<2>().getMetaPos() * i.template getIndex<0>().getMetaPos()[1] +
|
||||
i.template getIndex<3>().getMetaPos() * i.template getIndex<0>().getMetaPos()[2] );
|
||||
return out;
|
||||
}
|
||||
|
|
|
@ -67,11 +67,13 @@ namespace MultiArrayTools
|
|||
{
|
||||
public:
|
||||
typedef SingleIndex<int,RangeType::SPACE> CoordIndex;
|
||||
typedef SingleIndex<std::array<int,3>,RangeType::MOMETUM> MomIndex;
|
||||
typedef SingleIndex<std::array<int,3>,RangeType::MOMENTUM> MomIndex;
|
||||
typedef MultiIndex<MomIndex,CoordIndex,CoordIndex,CoordIndex> InIndex;
|
||||
typedef SingleIndex<size_t,RangeType::DISTANCE> DistIndex;
|
||||
typedef SingleIndex<int,RangeType::SPACE> ScalProdIndex;
|
||||
typedef MultiIndex<DistIndex,ScalProdIndex> OutIndex;
|
||||
typedef MultiRange<SingleRange<size_t,RangeType::DISTANCE>,
|
||||
SingleRange<int,RangeType::SPACE> > OutRange;
|
||||
|
||||
DEFAULT_MEMBERS(pyProjFunction);
|
||||
|
||||
|
|
Loading…
Reference in a new issue