 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
16 void Inverse(
const Tensor& A, Tensor& output);
20 [[maybe_unused]]
void* output_data,
23 const Device& device);
25 #ifdef BUILD_SYCL_MODULE
28 [[maybe_unused]]
void* output_data,
31 const Device& device);
34 #ifdef BUILD_CUDA_MODULE
40 const Device& device);
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Dtype GetDtype() const
Definition: Tensor.h:1164
SizeVector GetShape() const
Definition: Tensor.h:1127
Tensor Contiguous() const
Definition: Tensor.cpp:772
static Tensor Eye(int64_t n, Dtype dtype, const Device &device)
Create an identity matrix of size n x n.
Definition: Tensor.cpp:418
static Tensor Zeros(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with zeros.
Definition: Tensor.cpp:406
const Dtype Int32
Definition: Dtype.cpp:46
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
void InverseSYCL(void *A_data, void *ipiv_data, void *output_data, int64_t n, Dtype dtype, const Device &device)
Definition: InverseSYCL.cpp:19
void Inverse(const Tensor &A, Tensor &output)
Computes A^{-1} with LU factorization, where A is a N x N square matrix.
Definition: Inverse.cpp:18
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
#define LogError(...)
Definition: Logging.h:60
static Tensor Empty(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor with uninitialized values.
Definition: Tensor.cpp:400
void InverseCUDA(void *A_data, void *ipiv_data, void *output_data, int64_t n, Dtype dtype, const Device &device)
Definition: InverseCUDA.cpp:16
#define AssertTensorDtypes(tensor,...)
Definition: TensorCheck.h:33
const Dtype Int64
Definition: Dtype.cpp:47
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
void InverseCPU(void *A_data, void *ipiv_data, [[maybe_unused]] void *output_data, int64_t n, Dtype dtype, const Device &device)
T * GetDataPtr()
Definition: Tensor.h:1144