Return the data frame containing the gradients for all parameters.
gradients()
A list of lists. See Examples.
# \dontrun{
test <- cmdstanr_example("logistic", method = "diagnose")
# retrieve the gradients
test$gradients()
#> param_idx value model finite_diff error
#> 1 0 0.788454 -2.90866 -2.90866 4.89447e-09
#> 2 1 0.538042 -17.17950 -17.17950 2.76466e-08
#> 3 2 -1.725840 16.99630 16.99630 8.87535e-10
#> 4 3 1.854370 -7.63726 -7.63726 -8.95156e-09
# }