W3cubDocs

/Rust

Function simd_fabs

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

Returns absolute value of a vector, elementwise.

T must be a vector of floating-point primitive types.

© 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_fabs.html