# reduceMax

`import { reduceMax } from "destack:math";`

Horizontal reduction: maximum of all lanes.

```ds title="reduceMax"
export declare function reduceMax<T, const N: usize>(v: Vector<T, N>): T
```

[language/library/src/math/vector.ds:129](https://github.com/destack-sh/destack/blob/main/language/library/src/math/vector.ds#L129)
