Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType > Struct Template Reference

#include <tensor.h>

Public Types

template<typename T_ >
using cast_op_type = ::pybind11::detail::movable_cast_op_type< T_ >
 
using Helper = eigen_tensor_helper< remove_cv_t< Type > >
 
using MapType = Eigen::TensorMap< Type, Options >
 

Public Member Functions

bool load (handle src, bool)
 
 operator MapType & ()
 
 operator MapType && () &&
 
 operator MapType * ()
 

Static Public Member Functions

static handle cast (const MapType &&src, return_value_policy policy, handle parent)
 
static handle cast (const MapType &src, return_value_policy policy, handle parent)
 
static handle cast (const MapType *src, return_value_policy policy, handle parent)
 
static handle cast (MapType &&src, return_value_policy policy, handle parent)
 
static handle cast (MapType &src, return_value_policy policy, handle parent)
 
static handle cast (MapType *src, return_value_policy policy, handle parent)
 
template<typename C >
static handle cast_impl (C *src, return_value_policy policy, handle parent)
 

Static Public Attributes

static constexpr auto name = get_tensor_descriptor<Type, true, needs_writeable>::value
 
static constexpr bool needs_writeable = !std::is_const<Type>::value
 

Protected Attributes

std::unique_ptr< MapTypevalue
 

Detailed Description

template<typename Type, int Options>
struct type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >

Definition at line 363 of file tensor.h.

Member Typedef Documentation

◆ cast_op_type

template<typename Type , int Options>
template<typename T_ >
using type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast_op_type = ::pybind11::detail::movable_cast_op_type<T_>

Definition at line 512 of file tensor.h.

◆ Helper

template<typename Type , int Options>
using type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::Helper = eigen_tensor_helper<remove_cv_t<Type> >

Definition at line 368 of file tensor.h.

◆ MapType

template<typename Type , int Options>
using type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::MapType = Eigen::TensorMap<Type, Options>

Definition at line 367 of file tensor.h.

Member Function Documentation

◆ cast() [1/6]

template<typename Type , int Options>
static handle type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast ( const MapType &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 416 of file tensor.h.

◆ cast() [2/6]

template<typename Type , int Options>
static handle type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast ( const MapType src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 428 of file tensor.h.

◆ cast() [3/6]

template<typename Type , int Options>
static handle type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast ( const MapType src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 445 of file tensor.h.

◆ cast() [4/6]

template<typename Type , int Options>
static handle type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast ( MapType &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 412 of file tensor.h.

◆ cast() [5/6]

template<typename Type , int Options>
static handle type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast ( MapType src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 420 of file tensor.h.

◆ cast() [6/6]

template<typename Type , int Options>
static handle type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast ( MapType src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 436 of file tensor.h.

◆ cast_impl()

template<typename Type , int Options>
template<typename C >
static handle type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::cast_impl ( C src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 455 of file tensor.h.

◆ load()

template<typename Type , int Options>
bool type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::load ( handle  src,
bool   
)
inline

Definition at line 370 of file tensor.h.

◆ operator MapType &()

template<typename Type , int Options>
type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::operator MapType & ( )
inlineexplicit

Definition at line 508 of file tensor.h.

◆ operator MapType &&()

template<typename Type , int Options>
type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::operator MapType && ( ) &&
inlineexplicit

Definition at line 509 of file tensor.h.

◆ operator MapType *()

template<typename Type , int Options>
type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::operator MapType * ( )
inlineexplicit

Definition at line 507 of file tensor.h.

Member Data Documentation

◆ name

template<typename Type , int Options>
constexpr auto type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::name = get_tensor_descriptor<Type, true, needs_writeable>::value
staticconstexpr

Definition at line 506 of file tensor.h.

◆ needs_writeable

template<typename Type , int Options>
constexpr bool type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::needs_writeable = !std::is_const<Type>::value
staticconstexpr

Definition at line 498 of file tensor.h.

◆ value

template<typename Type , int Options>
std::unique_ptr<MapType> type_caster< Eigen::TensorMap< Type, Options >, typename eigen_tensor_helper< remove_cv_t< Type > >::ValidType >::value
protected

Definition at line 503 of file tensor.h.


The documentation for this struct was generated from the following file:


gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:08:22