# gm.math

[[[Source]]](https://github.com/google-deepmind/gemma/tree/main/gemma/gm/math/__init__.py)

```{eval-rst}
.. automodule:: gemma.gm.math
  :no-members:
```

## Symbols


### Function

|  |  |
--- | ---
[gm.math.apply_rope](apply_rope) | Applies RoPE.
[gm.math.count_consecutive](count_consecutive) | Counts consecutive identical elements in a list.

```{toctree}
:hidden:

apply_rope
count_consecutive
```