Open3D (C++ API)  0.18.0
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
LinalgUtils.h File Reference
#include <string>
#include "open3d/core/Device.h"
#include "open3d/core/Dtype.h"
#include "open3d/core/MemoryManager.h"
#include "open3d/core/linalg/LinalgHeadersCPU.h"
#include "open3d/core/linalg/LinalgHeadersCUDA.h"
#include "open3d/utility/Logging.h"

Go to the source code of this file.

Namespaces

namespace  open3d
 
namespace  open3d::core
 

Macros

#define DISPATCH_LINALG_DTYPE_TO_TEMPLATE(DTYPE, ...)
 

Functions

void open3d::core::OPEN3D_LAPACK_CHECK (OPEN3D_CPU_LINALG_INT info, const std::string &msg)
 

Macro Definition Documentation

◆ DISPATCH_LINALG_DTYPE_TO_TEMPLATE

#define DISPATCH_LINALG_DTYPE_TO_TEMPLATE (   DTYPE,
  ... 
)
Value:
[&] { \
if (DTYPE == open3d::core::Float32) { \
using scalar_t = float; \
return __VA_ARGS__(); \
} else if (DTYPE == open3d::core::Float64) { \
using scalar_t = double; \
return __VA_ARGS__(); \
} else { \
utility::LogError("Unsupported data type."); \
} \
}()
const Dtype Float64
Definition Dtype.cpp:43
const Dtype Float32
Definition Dtype.cpp:42