Open3D (C++ API)  0.18.0+5c982c7
TensorFunction.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "open3d/core/Tensor.h"
12 
13 namespace open3d {
14 namespace core {
15 
55 Tensor Concatenate(const std::vector<Tensor>& tensors,
56  const utility::optional<int64_t>& axis = 0);
57 
90 Tensor Append(const Tensor& self,
91  const Tensor& other,
92  const utility::optional<int64_t>& axis = utility::nullopt);
93 
102 Tensor Maximum(const Tensor& input, const Tensor& other);
103 
112 Tensor Minimum(const Tensor& input, const Tensor& other);
113 
114 } // namespace core
115 } // namespace open3d
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....
Definition: TensorFunction.cpp:79
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...
Definition: TensorFunction.cpp:136
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...
Definition: TensorFunction.cpp:124
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...
Definition: TensorFunction.cpp:118
constexpr nullopt_t nullopt
Definition: Optional.h:152
Definition: PinholeCameraIntrinsic.cpp:16