:orphan:
# TaoComputeJacobianInequality
Computes the Jacobian matrix that has been set with `TaoSetJacobianInequalityRoutine()`. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoComputeJacobianInequality(Tao tao, Vec X, Mat J, Mat Jpre)
```
Collective


## Input Parameters

- ***tao -*** the `Tao` solver context
- ***X   -*** input vector



## Output Parameters

- ***J    -*** Jacobian matrix
- ***Jpre -*** matrix used to construct the preconditioner





## Note
Most users should not need to explicitly call this routine, as it
is used internally within the minimization solvers.


## See Also
 [](ch_tao), `Tao`, `TaoComputeObjective()`, `TaoComputeObjectiveAndGradient()`, `TaoSetJacobianStateRoutine()`, `TaoComputeJacobianDesign()`, `TaoSetStateDesignIS()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver_hj.c.html#TaoComputeJacobianInequality">src/tao/interface/taosolver_hj.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver_hj.c)


[Index of all Tao routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
