Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > > Struct Template Reference

#include <eigen.h>

Public Types

using Index = typename Type::Index
 
using Scalar = typename Type::Scalar
 
using StorageIndex = remove_reference_t< decltype(*std::declval< Type >().outerIndexPtr())>
 

Public Member Functions

bool load (handle src, bool)
 
 PYBIND11_TYPE_CASTER (Type, const_name<(Type::IsRowMajor) !=0 >("scipy.sparse.csr_matrix[", "scipy.sparse.csc_matrix[")+npy_format_descriptor< Scalar >::name+const_name("]"))
 

Static Public Member Functions

static handle cast (const Type &src, return_value_policy, handle)
 

Static Public Attributes

static constexpr bool rowMajor = Type::IsRowMajor
 

Detailed Description

template<typename Type>
struct type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >

Definition at line 640 of file wrap/pybind11/include/pybind11/eigen.h.

Member Typedef Documentation

◆ Index

template<typename Type >
using type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >::Index = typename Type::Index

Definition at line 643 of file wrap/pybind11/include/pybind11/eigen.h.

◆ Scalar

template<typename Type >
using type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >::Scalar = typename Type::Scalar

Definition at line 641 of file wrap/pybind11/include/pybind11/eigen.h.

◆ StorageIndex

template<typename Type >
using type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >::StorageIndex = remove_reference_t<decltype(*std::declval<Type>().outerIndexPtr())>

Definition at line 642 of file wrap/pybind11/include/pybind11/eigen.h.

Member Function Documentation

◆ cast()

template<typename Type >
static handle type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >::cast ( const Type &  src,
return_value_policy  ,
handle   
)
inlinestatic

Definition at line 685 of file wrap/pybind11/include/pybind11/eigen.h.

◆ load()

template<typename Type >
bool type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >::load ( handle  src,
bool   
)
inline

Definition at line 646 of file wrap/pybind11/include/pybind11/eigen.h.

◆ PYBIND11_TYPE_CASTER()

template<typename Type >
type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >::PYBIND11_TYPE_CASTER ( Type  ,
const_name Type::IsRowMajor) !=0 >("scipy.sparse.csr_matrix[", "scipy.sparse.csc_matrix[")+npy_format_descriptor< Scalar >::name+const_name("]" 
)

Member Data Documentation

◆ rowMajor

template<typename Type >
constexpr bool type_caster< Type, enable_if_t< is_eigen_sparse< Type >::value > >::rowMajor = Type::IsRowMajor
static

Definition at line 644 of file wrap/pybind11/include/pybind11/eigen.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:08