 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
16 void LeastSquares(
const Tensor& A,
const Tensor& B, Tensor&
X);
18 #ifdef BUILD_CUDA_MODULE
25 const Device& device);
28 #ifdef BUILD_SYCL_MODULE
35 const Device& device);
44 const Device& device);
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Dtype GetDtype() const
Definition: Tensor.h:1164
Tensor Clone() const
Copy Tensor to the same device.
Definition: Tensor.h:502
SizeVector GetShape() const
Definition: Tensor.h:1127
void LeastSquaresCUDA(void *A_data, void *B_data, int64_t m, int64_t n, int64_t k, Dtype dtype, const Device &device)
Definition: LeastSquaresCUDA.cpp:24
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:45
Tensor Slice(int64_t dim, int64_t start, int64_t stop, int64_t step=1) const
Definition: Tensor.cpp:857
void LeastSquaresCPU(void *A_data, void *B_data, int64_t m, int64_t n, int64_t k, Dtype dtype, const Device &device)
Definition: LeastSquaresCPU.cpp:15
bool IsCUDA() const
Returns true iff device type is CUDA.
Definition: Device.h:49
bool IsSYCL() const
Returns true iff device type is SYCL GPU.
Definition: Device.h:52
Tensor T() const
Expects input to be <= 2-D Tensor by swapping dimension 0 and 1.
Definition: Tensor.cpp:1079
const Dtype Float64
Definition: Dtype.cpp:43
Device GetDevice() const override
Definition: Tensor.cpp:1435
When CUDA is not enabled, this is a dummy class.
Definition: CUDAUtils.h:214
const Dtype Float32
Definition: Dtype.cpp:42
Definition: SizeVector.h:70
void LeastSquaresSYCL(void *A_data, void *B_data, int64_t m, int64_t n, int64_t k, Dtype dtype, const Device &device)
Definition: LeastSquaresSYCL.cpp:19
#define LogError(...)
Definition: Logging.h:60
#define AssertTensorDtype(tensor,...)
Definition: TensorCheck.h:21
void * X
Definition: SmallVector.cpp:45
void LeastSquares(const Tensor &A, const Tensor &B, Tensor &X)
Solve AX = B with QR decomposition. A is a full-rank m x n matrix (m >= n).
Definition: LeastSquares.cpp:17
#define AssertTensorDtypes(tensor,...)
Definition: TensorCheck.h:33
T * GetDataPtr()
Definition: Tensor.h:1144