ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
NNSIndex.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
9 
10 namespace cloudViewer {
11 namespace core {
12 namespace nns {
13 
16  return static_cast<int>(shape[1]);
17 }
18 
19 size_t NNSIndex::GetDatasetSize() const {
21  return static_cast<size_t>(shape[0]);
22 }
23 
25 
27 
29 
30 } // namespace nns
31 } // namespace core
32 } // namespace cloudViewer
Dtype GetDtype() const
Definition: Tensor.h:1164
Device GetDevice() const override
Definition: Tensor.cpp:1435
SizeVector GetShape() const
Definition: Tensor.h:1127
Generic file read and write utility for python interface.