W3cubDocs

/Rust

Function simd_reduce_max

pub const unsafe fn simd_reduce_max<T, U>(x: T) -> U
🔬This is a nightly-only experimental API. (core_intrinsics)

Returns the maximum element of a vector.

T must be a vector of integers or floats.

U must be the element type of T.

For floating-point values, uses IEEE-754 maxNum.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/intrinsics/simd/fn.simd_reduce_max.html