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
8
#include "
cloudViewer/core/nns/NNSIndex.h
"
9
10
namespace
cloudViewer
{
11
namespace
core {
12
namespace
nns {
13
14
int
NNSIndex::GetDimension
()
const
{
15
SizeVector
shape =
dataset_points_
.
GetShape
();
16
return
static_cast<
int
>
(shape[1]);
17
}
18
19
size_t
NNSIndex::GetDatasetSize
()
const
{
20
SizeVector
shape =
dataset_points_
.
GetShape
();
21
return
static_cast<
size_t
>
(shape[0]);
22
}
23
24
Dtype
NNSIndex::GetDtype
()
const
{
return
dataset_points_
.
GetDtype
(); }
25
26
Device
NNSIndex::GetDevice
()
const
{
return
dataset_points_
.
GetDevice
(); }
27
28
Dtype
NNSIndex::GetIndexDtype
()
const
{
return
index_dtype_
; }
29
30
}
// namespace nns
31
}
// namespace core
32
}
// namespace cloudViewer
NNSIndex.h
cloudViewer::core::Device
Definition:
Device.h:18
cloudViewer::core::Dtype
Definition:
Dtype.h:21
cloudViewer::core::SizeVector
Definition:
SizeVector.h:70
cloudViewer::core::Tensor::GetDtype
Dtype GetDtype() const
Definition:
Tensor.h:1164
cloudViewer::core::Tensor::GetDevice
Device GetDevice() const override
Definition:
Tensor.cpp:1435
cloudViewer::core::Tensor::GetShape
SizeVector GetShape() const
Definition:
Tensor.h:1127
cloudViewer::core::nns::NNSIndex::GetDevice
Device GetDevice() const
Definition:
NNSIndex.cpp:26
cloudViewer::core::nns::NNSIndex::GetDtype
Dtype GetDtype() const
Definition:
NNSIndex.cpp:24
cloudViewer::core::nns::NNSIndex::GetDimension
int GetDimension() const
Definition:
NNSIndex.cpp:14
cloudViewer::core::nns::NNSIndex::dataset_points_
Tensor dataset_points_
Definition:
NNSIndex.h:120
cloudViewer::core::nns::NNSIndex::GetIndexDtype
Dtype GetIndexDtype() const
Definition:
NNSIndex.cpp:28
cloudViewer::core::nns::NNSIndex::index_dtype_
Dtype index_dtype_
Definition:
NNSIndex.h:121
cloudViewer::core::nns::NNSIndex::GetDatasetSize
size_t GetDatasetSize() const
Definition:
NNSIndex.cpp:19
cloudViewer
Generic file read and write utility for python interface.
Definition:
AutoSegmentationTools.h:16
libs
cloudViewer
core
nns
NNSIndex.cpp
Generated on Wed Jan 28 2026 09:00:54 for ACloudViewer by
1.9.1