<!--
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.segment_ops" />
<meta itemprop="path" content="Stable" />
</div>

# Module: tf_quant_finance.math.segment_ops

<!-- 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/segment_ops.py">View source</a>



Element wise ops acting on segments of arrays.



## Functions

[`segment_cumsum(...)`](../../tf_quant_finance/math/segment_ops/segment_cumsum.md): Computes cumulative sum of elements in a segment.

[`segment_diff(...)`](../../tf_quant_finance/math/segment_ops/segment_diff.md): Computes difference of successive elements in a segment.

