ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
SolveCPU.cpp
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 
11 
12 namespace cloudViewer {
13 namespace core {
14 
15 void SolveCPU(void* A_data,
16  void* B_data,
17  void* ipiv_data,
18  int64_t n,
19  int64_t k,
20  Dtype dtype,
21  const Device& device) {
24  gesv_cpu<scalar_t>(
25  LAPACK_COL_MAJOR, n, k, static_cast<scalar_t*>(A_data),
26  n, static_cast<CLOUDVIEWER_CPU_LINALG_INT*>(ipiv_data),
27  static_cast<scalar_t*>(B_data), n),
28  "gels failed in SolveCPU");
29  });
30 }
31 
32 } // namespace core
33 } // namespace cloudViewer
#define CLOUDVIEWER_CPU_LINALG_INT
#define DISPATCH_LINALG_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: LinalgUtils.h:23
void OPEN3D_LAPACK_CHECK(CLOUDVIEWER_CPU_LINALG_INT info, const std::string &msg)
Definition: LinalgUtils.h:36
void SolveCPU(void *A_data, void *B_data, void *ipiv_data, int64_t n, int64_t k, Dtype dtype, const Device &device)
Definition: SolveCPU.cpp:15
Generic file read and write utility for python interface.