ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Tri.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 
11 
12 namespace cloudViewer {
13 namespace core {
14 
15 // See documentation for `core::Tensor::Triu`.
16 void Triu(const Tensor& A, Tensor& output, const int diagonal = 0);
17 
18 // See documentation for `core::Tensor::Tril`.
19 void Tril(const Tensor& A, Tensor& output, const int diagonal = 0);
20 
21 // See documentation for `core::Tensor::Triul`.
22 void Triul(const Tensor& A,
23  Tensor& upper,
24  Tensor& lower,
25  const int diagonal = 0);
26 
27 } // namespace core
28 } // namespace cloudViewer
void Triu(const Tensor &A, Tensor &output, const int diagonal)
Definition: Tri.cpp:35
void Triul(const Tensor &A, Tensor &upper, Tensor &lower, const int diagonal)
Definition: Tri.cpp:79
void Tril(const Tensor &A, Tensor &output, const int diagonal)
Definition: Tri.cpp:57
Generic file read and write utility for python interface.