#include "petsctao.h" PetscErrorCode TaoComputeGradient(Tao tao, Vec X, Vec G)Collective on Tao
tao | - the Tao context | |
X | - input vector |
-tao_test_gradient | - compare the user provided gradient with one compute via finite differences to check for errors | |
-tao_test_gradient_view | - display the user provided gradient, the finite difference gradient and the difference between them to help users detect the location of errors in the user provided gradient |