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
void TrilCPU(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriCPU.cpp:35
void TrilSYCL(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriSYCL.cpp:34
void TriulSYCL(const Tensor &A, Tensor &upper, Tensor &lower, const int diagonal)
Definition: TriSYCL.cpp:52
void TriulCPU(const Tensor &A, Tensor &upper, Tensor &lower, const int diagonal)
Definition: TriCPU.cpp:53
void TriuCPU(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriCPU.cpp:17
void TriuSYCL(const Tensor &A, Tensor &output, const int diagonal)
Definition: TriSYCL.cpp:16
Generic file read and write utility for python interface.