mlpack
Namespaces | Functions
import_decl.hpp File Reference
#include <mlpack/prereqs.hpp>
#include "strip_type.hpp"
Include dependency graph for import_decl.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 >
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...
 

Detailed Description

Author
Ryan Curtin

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.

Function Documentation

◆ ImportDecl() [1/2]

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.

This will give output of the form:

cdef cppclass Type: Type() nogil

◆ ImportDecl() [2/2]

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.

Parameters
dParameter info struct.
indentPointer to size_t indicating indent.
*(output) Unused parameter.