#[repr(C)]pub struct f32x10(/* private fields */);
Implementations§
source§impl f32x10
impl f32x10
sourcepub fn vmin(self, rhs: Self) -> Self
pub fn vmin(self, rhs: Self) -> Self
Returns a vector with the smallest/minimum value of each lane
sourcepub fn vmax(self, rhs: Self) -> Self
pub fn vmax(self, rhs: Self) -> Self
Returns a vector with the biggest/maximum value of each lane
sourcepub fn mul_add(self, rhs: Self, add: Self) -> Self
pub fn mul_add(self, rhs: Self, add: Self) -> Self
Fused multiply-add. Computes (self * a) + b
with only one rounding error.
§Compatibility
The fused multiply-add operation is only available on arm/aarch64 and x86/x86-64 with the target feature fma
.
For the rest of targets, a regular multiplication and addition are performed
§impl f32x10
impl f32x10
pub fn new(a: [f32; 10]) -> Self
pub fn filled_with(a: f32) -> f32x10
pub fn filled_with(a: f32) -> f32x10
Creates a new vector with all lanes filled with the provided value
pub fn into_array(self) -> [f32; 10]
pub fn into_array(self) -> [f32; 10]
Returns an array with the vector’s values
§impl f32x10
impl f32x10
pub unsafe fn get_unchecked(&self, idx: usize) -> &f32
pub unsafe fn get_unchecked(&self, idx: usize) -> &f32
Returns a reference to the value in the specified lane without checking if it’s within range
pub unsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut f32
pub unsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut f32
Returns a mutable reference to the value in the specified lane without checking if it’s within range
pub unsafe fn index_unchecked(&self, idx: usize) -> &f32
👎Deprecated since 0.1.4: use get_unchecked
instead
pub unsafe fn index_unchecked(&self, idx: usize) -> &f32
get_unchecked
insteadReturns a reference to the value in the specified lane without checking if it’s within range
pub unsafe fn index_mut_unchecked(&mut self, idx: usize) -> &mut f32
👎Deprecated since 0.1.4: use get_mut_unchecked
instead
pub unsafe fn index_mut_unchecked(&mut self, idx: usize) -> &mut f32
get_mut_unchecked
insteadReturns a mutable reference to the value in the specified lane without checking if it’s within range
Trait Implementations§
source§impl AddAssign<f32> for f32x10
impl AddAssign<f32> for f32x10
source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
+=
operation. Read moresource§impl AddAssign for f32x10
impl AddAssign for f32x10
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moresource§impl DivAssign<f32> for f32x10
impl DivAssign<f32> for f32x10
source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
/=
operation. Read moresource§impl DivAssign for f32x10
impl DivAssign for f32x10
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moresource§impl MulAssign<f32> for f32x10
impl MulAssign<f32> for f32x10
source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
*=
operation. Read moresource§impl MulAssign for f32x10
impl MulAssign for f32x10
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moresource§impl PartialEq for f32x10
impl PartialEq for f32x10
source§impl SubAssign<f32> for f32x10
impl SubAssign<f32> for f32x10
source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
-=
operation. Read moresource§impl SubAssign for f32x10
impl SubAssign for f32x10
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more