mlpack
|
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::ImportDecl (util::ParamData &d, const size_t indent, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if< data::HasSerialize< T >::value >::type *=0) |
For a serializable type, print a cppclass definition. More... | |
template<typename T > | |
void | mlpack::bindings::python::ImportDecl (util::ParamData &, const size_t, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0) |
For a non-serializable type, print nothing. | |
template<typename T > | |
void | mlpack::bindings::python::ImportDecl (util::ParamData &, const size_t, const typename std::enable_if< arma::is_arma_type< T >::value >::type *=0) |
For a matrix type, print nothing. | |
template<typename T > | |
void | mlpack::bindings::python::ImportDecl (util::ParamData &d, const void *indent, void *) |
Print the cppclass definition for a serializable model; print nothing for a non-serializable type. More... | |
For a serializable model, print the class import.
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::ImportDecl | ( | util::ParamData & | d, |
const size_t | indent, | ||
const typename std::enable_if<!arma::is_arma_type< T >::value >::type * | = 0 , |
||
const typename std::enable_if< data::HasSerialize< T >::value >::type * | = 0 |
||
) |
For a serializable type, print a cppclass definition.
This will give output of the form:
cdef cppclass Type: Type() nogil
void mlpack::bindings::python::ImportDecl | ( | util::ParamData & | d, |
const void * | indent, | ||
void * | |||
) |
Print the cppclass definition for a serializable model; print nothing for a non-serializable type.
d | Parameter info struct. |
indent | Pointer to size_t indicating indent. |
* | (output) Unused parameter. |