ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
TensorFunction.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 
10 #include <Optional.h>
11 
13 
14 namespace cloudViewer {
15 namespace core {
16 
56 Tensor Concatenate(const std::vector<Tensor>& tensors,
57  const utility::optional<int64_t>& axis = 0);
58 
91 Tensor Append(const Tensor& self,
92  const Tensor& other,
93  const utility::optional<int64_t>& axis = utility::nullopt);
94 
103 Tensor Maximum(const Tensor& input, const Tensor& other);
104 
113 Tensor Minimum(const Tensor& input, const Tensor& other);
114 
115 } // namespace core
116 } // namespace cloudViewer
Tensor Concatenate(const std::vector< Tensor > &tensors, const utility::optional< int64_t > &axis)
Concatenates the list of tensors in their order, along the given axis into a new tensor....
Tensor Append(const Tensor &self, const Tensor &other, const utility::optional< int64_t > &axis)
Appends the two tensors, along the given axis into a new tensor. Both the tensors must have same data...
Tensor Minimum(const Tensor &input, const Tensor &other)
Computes the element-wise minimum of input and other. The tensors must have same data type and device...
Tensor Maximum(const Tensor &input, const Tensor &other)
Computes the element-wise maximum of input and other. The tensors must have same data type and device...
constexpr nullopt_t nullopt
Definition: Optional.h:136
Generic file read and write utility for python interface.