Open3D (C++ API)  0.18.0+252c867
Data Structures | Typedefs | Functions
open3d::core::tensor_init Namespace Reference

Data Structures

struct  NestedInitializerImpl
 
struct  NestedInitializerImpl< T, 0 >
 
struct  InitializerDim
 
struct  InitializerDim< std::initializer_list< L > >
 
struct  InitializerShapeImpl
 
struct  InitializerShapeImpl< 0 >
 

Typedefs

template<typename T , size_t D>
using NestedInitializerList = typename NestedInitializerImpl< T, D >::type
 

Functions

template<typename L , size_t... D>
SizeVector InitializerShape (const L &list, std::index_sequence< D... >)
 
template<typename L >
SizeVector InferShape (const L &list)
 
template<typename T , typename L >
void NestedCopy (T &&iter, const L &list)
 
template<typename T , typename L >
void NestedCopy (T &&iter, const std::initializer_list< L > &list)
 
template<typename T , size_t D>
std::vector< T > ToFlatVector (const SizeVector &shape, const tensor_init::NestedInitializerList< T, D > &nested_list)
 

Typedef Documentation

◆ NestedInitializerList

template<typename T , size_t D>
using open3d::core::tensor_init::NestedInitializerList = typedef typename NestedInitializerImpl<T, D>::type

Function Documentation

◆ InferShape()

template<typename L >
SizeVector open3d::core::tensor_init::InferShape ( const L &  list)

◆ InitializerShape()

template<typename L , size_t... D>
SizeVector open3d::core::tensor_init::InitializerShape ( const L &  list,
std::index_sequence< D... >   
)

◆ NestedCopy() [1/2]

template<typename T , typename L >
void open3d::core::tensor_init::NestedCopy ( T &&  iter,
const L &  list 
)

◆ NestedCopy() [2/2]

template<typename T , typename L >
void open3d::core::tensor_init::NestedCopy ( T &&  iter,
const std::initializer_list< L > &  list 
)

◆ ToFlatVector()

template<typename T , size_t D>
std::vector<T> open3d::core::tensor_init::ToFlatVector ( const SizeVector shape,
const tensor_init::NestedInitializerList< T, D > &  nested_list 
)