ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
TriImpl.h
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 #pragma once
9 
12 
13 namespace cloudViewer {
14 namespace core {
15 
16 void TriuCPU(const Tensor& A, Tensor& output, const int diagonal = 0);
17 
18 void TrilCPU(const Tensor& A, Tensor& output, const int diagonal = 0);
19 
20 void TriulCPU(const Tensor& A,
21  Tensor& upper,
22  Tensor& lower,
23  const int diagonal = 0);
24 
25 #ifdef BUILD_SYCL_MODULE
26 void TriuSYCL(const Tensor& A, Tensor& output, const int diagonal = 0);
27 
28 void TrilSYCL(const Tensor& A, Tensor& output, const int diagonal = 0);
29 
30 void TriulSYCL(const Tensor& A,
31  Tensor& upper,
32  Tensor& lower,
33  const int diagonal = 0);
34 #endif
35 
36 #ifdef BUILD_CUDA_MODULE
37 void TriuCUDA(const Tensor& A, Tensor& output, const int diagonal = 0);
38 
39 void TrilCUDA(const Tensor& A, Tensor& output, const int diagonal = 0);
40 
41 void TriulCUDA(const Tensor& A,
42  Tensor& upper,
43  Tensor& lower,
44  const int diagonal = 0);
45 #endif
46 } // namespace core
47 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::core::Tensor::GetDtype
Dtype GetDtype() const
Definition: Tensor.h:1164
Indexer.h
cloudViewer::core::Tensor
Definition: Tensor.h:32
cloudViewer::core::TrilSYCL
void TrilSYCL(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriSYCL.cpp:34
ParallelFor.h
cloudViewer::core::TriulCPU
void TriulCPU(const Tensor &A, Tensor &upper, Tensor &lower, const int diagonal)
Definition: TriCPU.cpp:53
Dispatch.h
cloudViewer::core::TriuSYCL
void TriuSYCL(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriSYCL.cpp:16
Tri.h
core
TriImpl.h
cloudViewer::core::TriuCPU
void TriuCPU(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriCPU.cpp:17
DISPATCH_DTYPE_TO_TEMPLATE
#define DISPATCH_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: Dispatch.h:31
Tensor.h
cloudViewer::core::TrilCPU
void TrilCPU(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriCPU.cpp:35
cloudViewer::core::TriulSYCL
void TriulSYCL(const Tensor &A, Tensor &upper, Tensor &lower, const int diagonal)
Definition: TriSYCL.cpp:52