stdlib/simdView source ↗
simd
9 items · generated by scribe fromstdlib/simd.fd· synced 2026-11-15
Contents
- add (function)
- sub (function)
- mul (function)
- div (function)
- dot (function)
- sum (function)
- scale (function)
- from_vec (function)
- to_str (function)
add
Elementwise addition of two SIMD vectors.
pub fn add(a: Vec<f64>, b: Vec<f64>) -> Vec<f64> {Parameters:
a:Vec<f64>b:Vec<f64>
Returns: Vec<f64>
Defined at line 16
sub
Elementwise subtraction.
pub fn sub(a: Vec<f64>, b: Vec<f64>) -> Vec<f64> {Parameters:
a:Vec<f64>b:Vec<f64>
Returns: Vec<f64>
Defined at line 21
mul
Elementwise multiplication.
pub fn mul(a: Vec<f64>, b: Vec<f64>) -> Vec<f64> {Parameters:
a:Vec<f64>b:Vec<f64>
Returns: Vec<f64>
Defined at line 26
div
Elementwise division.
pub fn div(a: Vec<f64>, b: Vec<f64>) -> Vec<f64> {Parameters:
a:Vec<f64>b:Vec<f64>
Returns: Vec<f64>
Defined at line 31
dot
Dot product of two SIMD vectors -> scalar.
pub fn dot(a: Vec<f64>, b: Vec<f64>) -> f64 {Parameters:
a:Vec<f64>b:Vec<f64>
Returns: f64
Defined at line 36
sum
Sum all elements of a SIMD vector -> scalar.
pub fn sum(a: Vec<f64>) -> f64 {Parameters:
a:Vec<f64>
Returns: f64
Defined at line 41
scale
Scale a SIMD vector by a scalar.
pub fn scale(a: Vec<f64>, s: f64) -> Vec<f64> {Parameters:
a:Vec<f64>s:f64
Returns: Vec<f64>
Defined at line 46
from_vec
Convert a Vec to a SIMD vector (identity — same representation).
pub fn from_vec(a: Vec<f64>) -> Vec<f64> {Parameters:
a:Vec<f64>
Returns: Vec<f64>
Defined at line 51
to_str
Convert SIMD vector to string.
pub fn to_str(a: Vec<f64>) -> str {Parameters:
a:Vec<f64>
Returns: str
Defined at line 56
Generated by scribe, the Fides documentation generator