WIP: check format compatibility
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
303450d068
commit
bfeda55904
1 changed files with 13 additions and 2 deletions
|
@ -370,8 +370,19 @@ namespace CNORXZ
|
|||
|
||||
Vector<SizeT> YIndex::deepFormat() const
|
||||
{
|
||||
CXZ_ERROR("implement!!!");
|
||||
return Vector<SizeT> {1};
|
||||
Vector<Vector<SizeT>> dfv(mIs.size());
|
||||
SizeT osize = 0;
|
||||
for(SizeT j = 0; j != dfv.size(); ++j){
|
||||
dfv[j] = mIs[j]->deepFormat();
|
||||
osize += dfv[j].size();
|
||||
}
|
||||
Vector<SizeT> o(osize);
|
||||
SizeT off = 0;
|
||||
for(SizeT j = 0; j != dfv.size(); ++j){
|
||||
std::copy(dfv[j].begin(), dfv[j].end(), o.begin()+off);
|
||||
off += dfv[j].size();
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
||||
const YFormat& YIndex::format() const
|
||||
|
|
Loading…
Reference in a new issue