<!--
This file is generated by a tool. Do not edit directly.
For open-source contributions the docs will be updated automatically.
-->

*Last updated: 2023-03-16.*

<div itemscope itemtype="http://developers.google.com/ReferenceObject">
<meta itemprop="name" content="tf_quant_finance.math" />
<meta itemprop="path" content="Stable" />
</div>

# Module: tf_quant_finance.math

<!-- Insert buttons and diff -->

<table class="tfo-notebook-buttons tfo-api" align="left">
</table>

<a target="_blank" href="https://github.com/paolodelia99/tf-quant-finance/blob/main/tf_quant_finance/math/__init__.py">View source</a>



TensorFlow Quantitative Finance general math functions.



## Modules

[`custom_loops`](../tf_quant_finance/math/custom_loops.md) module: Custom implementations of loops for improved performance.

[`integration`](../tf_quant_finance/math/integration.md) module: Numerical integration methods.

[`interpolation`](../tf_quant_finance/math/interpolation.md) module: Ops related to interpolation.

[`optimizer`](../tf_quant_finance/math/optimizer.md) module: Optimization methods.

[`pad`](../tf_quant_finance/math/pad.md) module: Helper functions for padding multiple tensors.

[`pde`](../tf_quant_finance/math/pde.md) module: PDE solver methods.

[`piecewise`](../tf_quant_finance/math/piecewise.md) module: Piecewise utility functions.

[`qmc`](../tf_quant_finance/math/qmc.md) module: RQMC support.

[`random`](../tf_quant_finance/math/random.md) module: Ops related to random or quasi random sampling.

[`root_search`](../tf_quant_finance/math/root_search.md) module: Ops related to root search.

[`segment_ops`](../tf_quant_finance/math/segment_ops.md) module: Element wise ops acting on segments of arrays.

## Functions

[`diff(...)`](../tf_quant_finance/math/diff.md): Computes the difference between elements of an array at a regular interval.

[`fwd_gradient(...)`](../tf_quant_finance/math/fwd_gradient.md): Computes forward mode gradient.

[`gradients(...)`](../tf_quant_finance/math/gradients.md): Computes the gradients of `func_or_y` wrt to `*xs`.

[`jacobian(...)`](../tf_quant_finance/math/jacobian.md): Computes the jacobian of `func` wrt to `x`.

[`make_val_and_grad_fn(...)`](../tf_quant_finance/math/make_val_and_grad_fn.md): Function decorator to compute both function value and gradient.

[`value_and_gradient(...)`](../tf_quant_finance/math/value_and_gradient.md): Computes `f(*xs)` and its gradients wrt to `*xs`.

[`value_and_jacobian(...)`](../tf_quant_finance/math/value_and_jacobian.md): Computes `f(x)` and its jacobian wrt to `x`.

