This function will run tests on the gradient and hessian functions implemented in a C++ objective module. Detected problems will be printed to the console.'
sgl_test(module_name, PACKAGE, data, parameterGrouping, groupWeights,
parameterWeights, algorithm.config = sgl.standard.config)
reference to objective specific C++ routines.
name of the calling package.
a list of data objects -- will be parsed to the specified module.
grouping of parameters, a vector of length \(p\). Each element of the vector specifying the group of the parameters in the corresponding column of \(\beta\).
the group weights, a vector of length length(unique(parameterGrouping))
(the number of groups).
a matrix of size \(q \times p\).
the algorithm configuration to be used.
The number of found problems