ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Arange.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 namespace kernel {
15 
16 Tensor Arange(const Tensor& start, const Tensor& stop, const Tensor& step);
17 
18 void ArangeCPU(const Tensor& start,
19  const Tensor& stop,
20  const Tensor& step,
21  Tensor& dst);
22 
23 #ifdef BUILD_SYCL_MODULE
24 void ArangeSYCL(const Tensor& start,
25  const Tensor& stop,
26  const Tensor& step,
27  Tensor& dst);
28 #endif
29 
30 #ifdef BUILD_CUDA_MODULE
31 void ArangeCUDA(const Tensor& start,
32  const Tensor& stop,
33  const Tensor& step,
34  Tensor& dst);
35 #endif
36 
37 } // namespace kernel
38 } // namespace core
39 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::core::Tensor::GetDtype
Dtype GetDtype() const
Definition: Tensor.h:1164
Arange.h
cloudViewer::core::kernel::ArangeCPU
void ArangeCPU(const Tensor &start, const Tensor &stop, const Tensor &step, Tensor &dst)
Definition: ArangeCPU.cpp:17
AssertTensorDevice
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:45
cloudViewer::core::Tensor
Definition: Tensor.h:32
cloudViewer::core::Dtype
Definition: Dtype.h:21
cloudViewer::core::Device
Definition: Device.h:18
TensorCheck.h
cloudViewer::core::kernel::Arange
Tensor Arange(const Tensor &start, const Tensor &stop, const Tensor &step)
Definition: Arange.cpp:17
core
cloudViewer::core::Tensor::GetDevice
Device GetDevice() const override
Definition: Tensor.cpp:1435
LogError
#define LogError(...)
Definition: Logging.h:60
DISPATCH_DTYPE_TO_TEMPLATE
#define DISPATCH_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: Dispatch.h:31
cloudViewer::core::Tensor::Item
T Item() const
Definition: Tensor.h:618
Tensor.h
AssertTensorShape
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
cloudViewer::utility::ceil
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
cloudViewer::core::kernel::ArangeSYCL
void ArangeSYCL(const Tensor &start, const Tensor &stop, const Tensor &step, Tensor &dst)
Definition: ArangeSYCL.cpp:17