:orphan:
# TSComputeRHSJacobian
Computes the Jacobian matrix that has been set with `TSSetRHSJacobian()`. 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSComputeRHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B)
```
Collective


## Input Parameters

- ***ts -*** the `TS` context
- ***t -*** current timestep
- ***U -*** input vector



## Output Parameters

- ***A -*** Jacobian matrix
- ***B -*** optional preconditioning matrix





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


## See Also
 [](ch_ts), `TS`, `TSSetRHSJacobian()`, `KSPSetOperators()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/ts.c.html#TSComputeRHSJacobian">src/ts/interface/ts.c</A>


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


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