Commit 5fd5fc53b5c262601a7684181e931308a1f54712
1 parent
3a91e5e3
Exists in
master
and in
100 other branches
ELS splitted 4,31
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
src/ExternLib/mexvex_els_decode/MexVexElsDecode.hh
... | ... | @@ -83,8 +83,8 @@ public: |
83 | 83 | |
84 | 84 | template<typename Type> |
85 | 85 | void pushDataForMode1(std::vector<Type>& elt, int index) { |
86 | - typename std::vector<Type>::const_iterator first = elt.begin() + 31 * index; | |
87 | - typename std::vector<Type>::const_iterator last = elt.begin() + 31 * (index + 1); | |
86 | + typename std::vector<Type>::const_iterator first = elt.begin() + 32 * index; | |
87 | + typename std::vector<Type>::const_iterator last = elt.begin() + 32 * (index + 1) - 1; | |
88 | 88 | std::vector<Type> splitVec; |
89 | 89 | splitVec.resize(128, std::nan("")); |
90 | 90 | |
... | ... | @@ -99,11 +99,11 @@ public: |
99 | 99 | |
100 | 100 | template<typename Type> |
101 | 101 | void pushDataForMode1(Tab2DData<Type>& elt, int index) { |
102 | - Tab2DData<Type> newElt(elt.getDim1Size(),32); | |
102 | + Tab2DData<Type> newElt(elt.getDim1Size(),31); | |
103 | 103 | for(int i = 0; i < elt.getDim1Size(); ++i) { |
104 | 104 | std::vector<Type> eltVector = elt[i].toVector(); |
105 | - typename std::vector<Type>::const_iterator first = eltVector.begin() + 31 * index; | |
106 | - typename std::vector<Type>::const_iterator last = eltVector.begin() + 31 * (index + 1); | |
105 | + typename std::vector<Type>::const_iterator first = eltVector.begin() + 32 * index; | |
106 | + typename std::vector<Type>::const_iterator last = eltVector.begin() + 32 * (index + 1) - 1; | |
107 | 107 | std::vector<Type> splitVec(first, last); |
108 | 108 | newElt[i] = splitVec; |
109 | 109 | } | ... | ... |