Instance Methodswift 6.0.3Swift
min
The least scalar in the vector.
func min() -> Self.Scalar
The least scalar in the vector.
func min() -> Self.Scalar
where Self.Scalar:FloatingPoint
import Swift
protocol SIMD<Scalar> : CustomStringConvertible, Decodable, Encodable, ExpressibleByArrayLiteral, Hashable, SIMDStorage
A SIMD vector of a fixed number of elements.
associatedtype Scalar : Decodable, Encodable, Hashable
protocol FloatingPoint : Hashable, SignedNumeric, Strideable where Self == Self.Magnitude
A floating-point numeric type.
static var one: Self { get }
A vector with one in all lanes.
static var zero: Self { get }
A vector with zero in all lanes.
static func * (a: Self.Scalar, b: Self) -> Self
static func * (a: Self, b: Self.Scalar) -> Self
static func * (a: Self, b: Self) -> Self
static func *= (a: inout Self, b: Self.Scalar)
static func *= (a: inout Self, b: Self)
static func + (a: Self.Scalar, b: Self) -> Self
static func + (a: Self, b: Self.Scalar) -> Self
static func + (a: Self, b: Self) -> Self
static func += (a: inout Self, b: Self.Scalar)
static func += (a: inout Self, b: Self)
static func - (a: Self) -> Self
static func - (a: Self.Scalar, b: Self) -> Self
static func - (a: Self, b: Self.Scalar) -> Self
static func - (a: Self, b: Self) -> Self
static func -= (a: inout Self, b: Self.Scalar)
static func -= (a: inout Self, b: Self)
static func / (a: Self.Scalar, b: Self) -> Self
static func / (a: Self, b: Self.Scalar) -> Self
static func / (a: Self, b: Self) -> Self
static func /= (a: inout Self, b: Self.Scalar)
static func /= (a: inout Self, b: Self)
mutating func addProduct(_ a: Self.Scalar, _ b: Self)
mutating func addProduct(_ a: Self, _ b: Self.Scalar)
mutating func addProduct(_ a: Self, _ b: Self)
func addingProduct(_ a: Self.Scalar, _ b: Self) -> Self
func addingProduct(_ a: Self, _ b: Self.Scalar) -> Self
func addingProduct(_ a: Self, _ b: Self) -> Self
mutating func clamp(lowerBound: Self, upperBound: Self)
func clamped(lowerBound: Self, upperBound: Self) -> Self
mutating func formSquareRoot()
func max() -> Self.Scalar
The greatest scalar in the vector.
mutating func round(_ rule: FloatingPointRoundingRule)
func rounded(_ rule: FloatingPointRoundingRule) -> Self
A vector formed by rounding each lane of the source vector to an integral value according to the specified rounding rule
.
func squareRoot() -> Self
func sum() -> Self.Scalar
The sum of the scalars in the vector.