table from flattable

This commit is contained in:
Joachim Schoeberl 2022-12-12 23:45:49 +01:00
parent 52a71a5f76
commit 948a7bfc4d

View File

@ -149,13 +149,17 @@ namespace ngcore
size = tab2.Size();
index = new size_t[size+1];
for (size_t i = 0; i <= size; i++)
index[i] = tab2.index[i];
this->IndexArray() = tab2.IndexArray();
// for (size_t i = 0; i <= size; i++)
// index[i] = tab2.index[i];
size_t cnt = index[size];
data = new T[cnt];
this->AsArray() = tab2.AsArray();
/*
for (size_t i = 0; i < cnt; i++)
data[i] = tab2.data[i];
*/
}
explicit NETGEN_INLINE Table (const Table & tab2)