Skip to content

Commit 60074a3

Browse files
committed
Extend CenterChooser initialization
Set DataSize (cols_) when loading an index
1 parent 613fd24 commit 60074a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cpp/flann/algorithms/hierarchical_clustering_index.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ class HierarchicalClusteringIndex : public NNIndex<Distance>
128128
initCenterChooser();
129129

130130
setDataset(inputData);
131+
132+
chooseCenters_->setDataSize(veclen_);
131133
}
132134

133135

0 commit comments

Comments
 (0)