Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
BinaryEW.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 <unordered_set>
11
12#include "open3d/core/Tensor.h"
15
16namespace open3d {
17namespace core {
18namespace kernel {
19
37
38extern const std::unordered_set<BinaryEWOpCode, utility::hash_enum_class>
40
41void BinaryEW(const Tensor& lhs,
42 const Tensor& rhs,
43 Tensor& dst,
44 BinaryEWOpCode op_code);
45
46void BinaryEWCPU(const Tensor& lhs,
47 const Tensor& rhs,
48 Tensor& dst,
49 BinaryEWOpCode op_code);
50
51#ifdef BUILD_SYCL_MODULE
52void BinaryEWSYCL(const Tensor& lhs,
53 const Tensor& rhs,
54 Tensor& dst,
55 BinaryEWOpCode op_code);
56#endif
57
58#ifdef BUILD_CUDA_MODULE
59void BinaryEWCUDA(const Tensor& lhs,
60 const Tensor& rhs,
61 Tensor& dst,
62 BinaryEWOpCode op_code);
63#endif
64
65} // namespace kernel
66} // namespace core
67} // namespace open3d
Definition Tensor.h:32
Definition Arange.cpp:15
void BinaryEW(const Tensor &lhs, const Tensor &rhs, Tensor &dst, BinaryEWOpCode op_code)
Definition BinaryEW.cpp:29
BinaryEWOpCode
Definition BinaryEW.h:20
@ Gt
Definition BinaryEW.h:30
@ LogicalAnd
Definition BinaryEW.h:27
@ Eq
Definition BinaryEW.h:34
@ Div
Definition BinaryEW.h:24
@ Ne
Definition BinaryEW.h:35
@ Lt
Definition BinaryEW.h:31
@ Mul
Definition BinaryEW.h:23
@ LogicalOr
Definition BinaryEW.h:28
@ LogicalXor
Definition BinaryEW.h:29
@ Le
Definition BinaryEW.h:33
@ Ge
Definition BinaryEW.h:32
@ Sub
Definition BinaryEW.h:22
@ Add
Definition BinaryEW.h:21
const std::unordered_set< BinaryEWOpCode, utility::hash_enum_class > s_boolean_binary_ew_op_codes
Definition BinaryEW.cpp:21
void BinaryEWSYCL(const Tensor &lhs, const Tensor &rhs, Tensor &dst, BinaryEWOpCode op_code)
Definition BinaryEWSYCL.cpp:115
void BinaryEWCPU(const Tensor &lhs, const Tensor &rhs, Tensor &dst, BinaryEWOpCode op_code)
Definition BinaryEWCPU.cpp:153
Definition AdvancedIndexing.cpp:15
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
Definition PinholeCameraIntrinsic.cpp:16