cli_util.hpp File Reference
Include dependency graph for cli_util.hpp:

Go to the source code of this file.

Namespaces

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

Functions

void DisableBacktrace ()
 Disable backtraces. More...

 
void DisableVerbose ()
 Turn verbose output off. More...

 
void EnableTimers ()
 Enable timing. More...

 
void EnableVerbose ()
 Turn verbose output on. More...

 
template
<
typename
T
>
T * GetParamPtr (const std::string &paramName)
 Return a pointer. More...

 
template
<
typename
T
>
T & GetParamWithInfo (const std::string &paramName)
 Return the matrix part of a matrix + dataset info parameter. More...

 
void ResetTimers ()
 Reset the status of all timers. More...

 
template
<
typename
T
>
void SetParam (const std::string &identifier, T &value)
 Set the parameter to the given value. More...

 
template
<
typename
T
>
void SetParamPtr (const std::string &identifier, T *value, const bool copy)
 Set the parameter to the given value, given that the type is a pointer. More...

 
template
<
typename
T
>
void SetParamWithInfo (const std::string &identifier, T &matrix, const bool *dims)
 Set the parameter (which is a matrix/DatasetInfo tuple) to the given value. More...

 

Detailed Description

Author
Ryan Curtin

Simple function to work around Cython's lack of support for lvalue references.

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.

Definition in file cli_util.hpp.