---
title: simd_float4
framework: simd
role: symbol
role_heading: Type Alias
path: simd/simd_float4
---

# simd_float4

A vector of four 32-bit floating-point elements.

## Declaration

```swift
typealias simd_float4 = SIMD4<Float>
```

## Topics

### Functions to Create Four-Element Vectors From Other Vectors

- [simd_make_float4(_:)](simd/simd_make_float4(_:)-iuxp.md)
- [simd_make_float4(_:)](simd/simd_make_float4(_:)-fyse.md)
- [simd_make_float4(_:)](simd/simd_make_float4(_:)-cjxn.md)
- [simd_make_float4(_:)](simd/simd_make_float4(_:)-9xll2.md)
- [simd_make_float4(_:)](simd/simd_make_float4(_:)-5sesp.md)
- [simd_make_float4(_:_:)](simd/simd_make_float4(_:_:)-51w3j.md)
- [simd_make_float4_undef(_:)](simd/simd_make_float4_undef(_:)-3brs5.md)
- [simd_make_float4_undef(_:)](simd/simd_make_float4_undef(_:)-3f7tu.md)

### Functions to Create Four-Element Vectors From Scalar Values

- [simd_make_float4(_:)](simd/simd_make_float4(_:)-2ja7v.md)
- [simd_make_float4(_:_:_:_:)](simd/simd_make_float4(_:_:_:_:).md)
- [simd_make_float4_undef(_:)](simd/simd_make_float4_undef(_:)-24y7o.md)

### Functions to Create Four-Element Vectors From Combinations of Vectors and Scalar Values

- [simd_make_float4(_:_:_:)](simd/simd_make_float4(_:_:_:)-5qr1r.md)
- [simd_make_float4(_:_:_:)](simd/simd_make_float4(_:_:_:)-2rgt8.md)
- [simd_make_float4(_:_:)](simd/simd_make_float4(_:_:)-9ngva.md)
- [simd_make_float4(_:_:_:)](simd/simd_make_float4(_:_:_:)-2bmi8.md)
- [simd_make_float4(_:_:)](simd/simd_make_float4(_:_:)-4911p.md)

### Common Functions

- [simd_abs(_:)](simd/simd_abs(_:)-81qo8.md)
- [abs(_:)](simd/abs(_:)-1fzhv.md)
- [simd_clamp(_:_:_:)](simd/simd_clamp(_:_:_:)-6vmhh.md)
- [clamp(_:min:max:)](simd/clamp(_:min:max:)-46ay6.md)
- [clamp(_:min:max:)](simd/clamp(_:min:max:)-19q7w.md)
- [simd_equal(_:_:)](simd/simd_equal(_:_:)-6sa26.md)
- [simd_fract(_:)](simd/simd_fract(_:)-3w2rh.md)
- [fract(_:)](simd/fract(_:)-9s3df.md)
- [simd_sign(_:)](simd/simd_sign(_:)-74zwz.md)
- [sign(_:)](simd/sign(_:)-167c1.md)
- [simd_step(_:_:)](simd/simd_step(_:_:)-1fxwh.md)
- [step(_:edge:)](simd/step(_:edge:)-8we4c.md)

### Reduce Functions

- [simd_reduce_add(_:)](simd/simd_reduce_add(_:)-2yn18.md)
- [reduce_add(_:)](simd/reduce_add(_:)-8m4ir.md)
- [simd_reduce_max(_:)](simd/simd_reduce_max(_:)-4qug2.md)
- [reduce_max(_:)](simd/reduce_max(_:)-263wv.md)
- [simd_reduce_min(_:)](simd/simd_reduce_min(_:)-4un1u.md)
- [reduce_min(_:)](simd/reduce_min(_:)-1xt53.md)

### Interpolation Functions

- [simd_mix(_:_:_:)](simd/simd_mix(_:_:_:)-5fpv1.md)
- [mix(_:_:t:)](simd/mix(_:_:t:)-2uufx.md)
- [mix(_:_:t:)](simd/mix(_:_:t:)-8qz2g.md)
- [simd_smoothstep(_:_:_:)](simd/simd_smoothstep(_:_:_:)-33ugy.md)
- [smoothstep(_:edge0:edge1:)](simd/smoothstep(_:edge0:edge1:)-3gx0q.md)

### Extrema Functions

- [simd_max(_:_:)](simd/simd_max(_:_:)-3mrbf.md)
- [max(_:_:)](simd/max(_:_:)-8mn3g.md)
- [max(_:_:)](simd/max(_:_:)-317vz.md)
- [fmax(_:_:)](simd/fmax(_:_:)-7f29b.md)
- [simd_min(_:_:)](simd/simd_min(_:_:)-6upge.md)
- [min(_:_:)](simd/min(_:_:)-2jw3s.md)
- [min(_:_:)](simd/min(_:_:)-7wmdr.md)
- [fmin(_:_:)](simd/fmin(_:_:)-47ii0.md)

### Reciprocal and Reciprocal Square Root Functions

- [simd_recip(_:)](simd/simd_recip(_:)-820ma.md)
- [recip(_:)](simd/recip(_:)-3idnw.md)
- [simd_rsqrt(_:)](simd/simd_rsqrt(_:)-i4we.md)
- [rsqrt(_:)](simd/rsqrt(_:)-3g5ej.md)
- [simd_precise_recip(_:)](simd/simd_precise_recip(_:)-6ptoq.md)
- [simd_precise_rsqrt(_:)](simd/simd_precise_rsqrt(_:)-136xw.md)
- [simd_fast_recip(_:)](simd/simd_fast_recip(_:)-6nf.md)
- [simd_fast_rsqrt(_:)](simd/simd_fast_rsqrt(_:)-8p7fk.md)

### Exponential and Logarithmic Functions

- [exp(_:)](simd/exp(_:)-8lp9u.md)
- [exp2(_:)](simd/exp2(_:)-4tmv0.md)
- [exp10(_:)](simd/exp10(_:)-7ddho.md)
- [expm1(_:)](simd/expm1(_:)-4f45.md)
- [log(_:)](simd/log(_:)-259z1.md)
- [log2(_:)](simd/log2(_:)-5gt2x.md)
- [log10(_:)](simd/log10(_:)-2lowj.md)
- [log1p(_:)](simd/log1p(_:)-77wue.md)

### Geometry Functions

- [dot(_:_:)](simd/dot(_:_:)-47df.md)
- [normalize(_:)](simd/normalize(_:)-6g9xc.md)
- [project(_:_:)](simd/project(_:_:)-pdsh.md)
- [reflect(_:n:)](simd/reflect(_:n:)-8i5cc.md)
- [refract(_:n:eta:)](simd/refract(_:n:eta:)-8qo9c.md)

### Vector Norm Functions

- [norm_one(_:)](simd/norm_one(_:)-jo3r.md)
- [norm_inf(_:)](simd/norm_inf(_:)-8tppa.md)

### Length and Distance Functions

- [length(_:)](simd/length(_:)-9i1zg.md)
- [length_squared(_:)](simd/length_squared(_:)-80gxf.md)
- [distance(_:_:)](simd/distance(_:_:)-39uat.md)
- [distance_squared(_:_:)](simd/distance_squared(_:_:)-32wfg.md)

### Hyperbolic Functions

- [acosh(_:)](simd/acosh(_:)-7sio6.md)
- [asinh(_:)](simd/asinh(_:)-693z8.md)
- [atanh(_:)](simd/atanh(_:)-48wed.md)
- [cosh(_:)](simd/cosh(_:)-5k3hp.md)
- [sinh(_:)](simd/sinh(_:)-4eoxy.md)
- [tanh(_:)](simd/tanh(_:)-9p88r.md)

### Logic Functions

- [simd_select(_:_:_:)](simd/simd_select(_:_:_:)-7vjx6.md)
- [simd_bitselect(_:_:_:)](simd/simd_bitselect(_:_:_:)-7g1os.md)

### Math Functions

- [cbrt(_:)](simd/cbrt(_:)-5wdps.md)
- [ceil(_:)](simd/ceil(_:)-2omh0.md)
- [erf(_:)](simd/erf(_:)-4zsot.md)
- [erfc(_:)](simd/erfc(_:)-7acqr.md)
- [floor(_:)](simd/floor(_:)-56de3.md)
- [fma(_:_:_:)](simd/fma(_:_:_:)-1zefy.md)
- [fmod(_:_:)](simd/fmod(_:_:)-px8m.md)
- [hypot(_:_:)](simd/hypot(_:_:)-96sjx.md)
- [lgamma(_:)](simd/lgamma(_:)-3l63e.md)
- [nextafter(_:_:)](simd/nextafter(_:_:)-6sc0p.md)
- [pow(_:_:)](simd/pow(_:_:)-skyu.md)
- [remainder(_:_:)](simd/remainder(_:_:)-7o61f.md)
- [round(_:)](simd/round(_:)-8vqnv.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-3e79w.md)
- [tgamma(_:)](simd/tgamma(_:)-twdo.md)
- [trunc(_:)](simd/trunc(_:)-4xiyl.md)

### Trigonometric Functions

- [acos(_:)](simd/acos(_:)-2blze.md)
- [asin(_:)](simd/asin(_:)-87ban.md)
- [atan(_:)](simd/atan(_:)-8xa90.md)
- [atan2(_:_:)](simd/atan2(_:_:)-63ije.md)
- [cos(_:)](simd/cos(_:)-8qcj2.md)
- [cospi(_:)](simd/cospi(_:)-5chnf.md)
- [sin(_:)](simd/sin(_:)-80x4.md)
- [sinpi(_:)](simd/sinpi(_:)-71xz.md)
- [sincos(_:)](simd/sincos(_:)-8bfn1.md)
- [sincospi(_:)](simd/sincospi(_:)-84wzt.md)
- [tan(_:)](simd/tan(_:)-7uvy9.md)
- [tanpi(_:)](simd/tanpi(_:)-93eul.md)

### Classification Functions

- [isfinite(_:)](simd/isfinite(_:)-96ccc.md)
- [isinf(_:)](simd/isinf(_:)-4hqza.md)
- [isnan(_:)](simd/isnan(_:)-9epap.md)
- [isnormal(_:)](simd/isnormal(_:)-7428z.md)

### Alternative Type Alias

- [vector_float4](simd/vector_float4.md)
- [float4](simd/float4.md)

## See Also

### Vector data types

- [simd_float1](simd/simd_float1.md)
- [simd_float2](simd/simd_float2.md)
- [simd_float3](simd/simd_float3.md)
- [simd_float8](simd/simd_float8.md)
- [simd_float16](simd/simd_float16.md)
