mlpack
|
Go to the source code of this file.
Namespaces | |
mlpack | |
Linear algebra utility functions, generally performed on matrices or vectors. | |
Functions | |
void | mlpack::bindings::python::StripType (const std::string &inputType, std::string &strippedType, std::string &printedType, std::string &defaultsType) |
Given an input type like, e.g., "LogisticRegression<>", return three types that can be used in Python code. More... | |
Given a C++ typename that may have template parameters, return stripped and printable versions to be used in Python bindings.
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.
|
inline |
Given an input type like, e.g., "LogisticRegression<>", return three types that can be used in Python code.
strippedType will be a type with no template parameters (e.g. "LogisticRegression"), printedType will be a printable type with the template parameters (e.g. "LogisticRegression[]"), and defaultsType will be a printable type with a default template parameter (e.g. "LogisticRegression[T=*]") that can be used for class definitions.