Open3D (C++ API)  0.19.0
TensorFunction.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <optional>
11 
12 #include "open3d/core/Tensor.h"
13 
14 namespace open3d {
15 namespace core {
16 
56 Tensor Concatenate(const std::vector<Tensor>& tensors,
57  const std::optional<int64_t>& axis = 0);
58 
91 Tensor Append(const Tensor& self,
92  const Tensor& other,
93  const std::optional<int64_t>& axis = std::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 open3d
Tensor Append(const Tensor &self, const Tensor &other, const std::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
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 Concatenate(const std::vector< Tensor > &tensors, const std::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 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
Definition: PinholeCameraIntrinsic.cpp:16