mlpack
|
#include "strip_type.hpp"
Go to the source code of this file.
Namespaces | |
mlpack | |
Linear algebra utility functions, generally performed on matrices or vectors. | |
Functions | |
template<typename T > | |
void | mlpack::bindings::python::PrintClassDefn (util::ParamData &, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0) |
Non-serializable models don't require any special definitions, so this prints nothing. | |
template<typename T > | |
void | mlpack::bindings::python::PrintClassDefn (util::ParamData &, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0) |
Matrices don't require any special definitions, so this prints nothing. | |
template<typename T > | |
void | mlpack::bindings::python::PrintClassDefn (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) |
Serializable models require a special class definition. More... | |
template<typename T > | |
void | mlpack::bindings::python::PrintClassDefn (util::ParamData &d, const void *, void *) |
Print the class definition to stdout. More... | |
Print the class definition for generating a .pyx binding.
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.
void mlpack::bindings::python::PrintClassDefn | ( | 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 |
||
) |
Serializable models require a special class definition.
This will produce code like:
void mlpack::bindings::python::PrintClassDefn | ( | util::ParamData & | d, |
const void * | , | ||
void * | |||
) |
Print the class definition to stdout.
Only serializable models require a different class definition, so anything else does nothing.
d | Parameter data. |
* | (input) Unused parameter. |
* | (output) Unused parameter. |