13 #ifndef MLPACK_BINDINGS_JULIA_PRINT_INPUT_PARAM_HPP 14 #define MLPACK_BINDINGS_JULIA_PRINT_INPUT_PARAM_HPP 32 const std::string juliaName = (d.
name ==
"type") ?
"type_" : d.
name;
34 std::cout << juliaName;
36 if (!arma::is_arma_type<T>::value)
42 std::cout << GetJuliaType<typename std::remove_pointer<T>::type>();
47 << GetJuliaType<typename std::remove_pointer<T>::type>()
48 <<
", Missing} = missing";
53 std::cout <<
" = missing";
This structure holds all of the information about a single parameter, including its value (which is s...
std::string name
Name of this parameter.
bool required
True if this option is required.
if(BUILD_JULIA_BINDINGS) find_package(Julia 1.3.0) if(NOT JULIA_FOUND) macro(add_julia_binding name) endmacro() return() endif() add_custom_target(julia ALL) add_custom_command(TARGET julia PRE_BUILD COMMAND $
void PrintInputParam(const util::ParamData &d, const void *, void *)
Print the declaration of an input parameter as part of a line in a Julia function definition...