mlpack
Namespaces | Functions
get_cython_type.hpp File Reference
#include <mlpack/prereqs.hpp>
#include <mlpack/core/util/is_std_vector.hpp>
Include dependency graph for get_cython_type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlpack
 Linear algebra utility functions, generally performed on matrices or vectors.
 

Functions

template<typename T >
std::string mlpack::bindings::python::GetCythonType (util::ParamData &, const typename std::enable_if<!util::IsStdVector< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0)
 
template<>
std::string mlpack::bindings::python::GetCythonType< int > (util::ParamData &, const typename std::enable_if<!util::IsStdVector< int >::value >::type *, const typename std::enable_if<!data::HasSerialize< int >::value >::type *, const typename std::enable_if<!arma::is_arma_type< int >::value >::type *)
 
template<>
std::string mlpack::bindings::python::GetCythonType< double > (util::ParamData &, const typename std::enable_if<!util::IsStdVector< double >::value >::type *, const typename std::enable_if<!data::HasSerialize< double >::value >::type *, const typename std::enable_if<!arma::is_arma_type< double >::value >::type *)
 
template<>
std::string mlpack::bindings::python::GetCythonType< std::string > (util::ParamData &, const typename std::enable_if< !util::IsStdVector< std::string >::value >::type *, const typename std::enable_if< !data::HasSerialize< std::string >::value >::type *, const typename std::enable_if< !arma::is_arma_type< std::string >::value >::type *)
 
template<>
std::string mlpack::bindings::python::GetCythonType< size_t > (util::ParamData &, const typename std::enable_if<!util::IsStdVector< size_t >::value >::type *, const typename std::enable_if<!data::HasSerialize< size_t >::value >::type *, const typename std::enable_if<!arma::is_arma_type< size_t >::value >::type *)
 
template<>
std::string mlpack::bindings::python::GetCythonType< bool > (util::ParamData &, const typename std::enable_if<!util::IsStdVector< bool >::value >::type *, const typename std::enable_if<!data::HasSerialize< bool >::value >::type *, const typename std::enable_if<!arma::is_arma_type< bool >::value >::type *)
 
template<typename T >
std::string mlpack::bindings::python::GetCythonType (util::ParamData &d, const typename std::enable_if< util::IsStdVector< T >::value >::type *=0)
 
template<typename T >
std::string mlpack::bindings::python::GetCythonType (util::ParamData &d, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0)
 
template<typename T >
std::string mlpack::bindings::python::GetCythonType (util::ParamData &d, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if< data::HasSerialize< T >::value >::type *=0)
 

Detailed Description

Author
Ryan Curtin

Template metaprogramming to return the string representation of the Cython type for a given Cython binding parameter.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.