Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
buildEdges.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file buildEdges.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
11 #include <cstdint>
12 
13 namespace at {
14 class Tensor;
15 }
16 
17 namespace Acts {
18 namespace detail {
19 
21 at::Tensor postprocessEdgeTensor(at::Tensor edges, bool removeSelfLoops = true,
22  bool removeDuplicates = true,
23  bool flipDirections = false);
24 
27 at::Tensor buildEdgesFRNN(at::Tensor& embedFeatures, float rVal, int kVal,
28  bool flipDirections = false);
29 
33 at::Tensor buildEdgesKDTree(at::Tensor& embedFeatures, float rVal, int kVal,
34  bool flipDirections = false);
35 
43 at::Tensor buildEdges(at::Tensor& embedFeatures, float rVal, int kVal,
44  bool flipDirections = false);
45 
46 } // namespace detail
47 } // namespace Acts