Structureswift 6.0.1Swift
SIMD4
A vector of four scalar values.
@frozen struct SIMD4<Scalar> where Scalar : SIMDScalar
Citizens in Swift
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByArrayLiteral
A type that can be initialized using an array literal.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol SIMD<Scalar>
A SIMD vector of a fixed number of elements.
protocol SIMDStorage
A type that can function as storage for a SIMD vector type.
Typealiases
Type members
init(
) init(Scalar, Scalar, Scalar, Scalar
) Creates a new vector from the given elements.
init(lowHalf: SIMD2<Scalar>, highHalf: SIMD2<Scalar>
) Creates a new vector from two half-length vectors.
init(x: Scalar, y: Scalar, z: Scalar, w: Scalar
) Creates a new vector from the given elements.
Instance members
var evenHalf: SIMD2<Scalar>
A half-length vector made up of the even elements of the vector.
var highHalf: SIMD2<Scalar>
A half-length vector made up of the high elements of the vector.
var lowHalf: SIMD2<Scalar>
A half-length vector made up of the low elements of the vector.
var oddHalf: SIMD2<Scalar>
A half-length vector made up of the odd elements of the vector.
var scalarCount: Int
The number of scalars in the vector.
var w: Scalar
The fourth element of the vector.
var x: Scalar
The first element of the vector.
var y: Scalar
The second element of the vector.
var z: Scalar
The third element of the vector.
subscript(Int
) -> Scalar Accesses the scalar at the specified position.
Type features
init<S>(S
) Creates a vector from the given sequence.
init(arrayLiteral: Self.Scalar...
) Creates a vector from the specified elements.
init(from: any Decoder
) throws Creates a new vector by decoding scalars from the given decoder.
init(repeating: Self.Scalar
) A vector with the specified value in all lanes.
static var one: Self
A vector with one in all lanes.
static var one: Self
A vector with one in all lanes.
static var zero: Self
A vector with zero in all lanes.
static var zero: Self
A vector with zero in all lanes.
static func random(in: ClosedRange<Self.Scalar>
) -> Self Returns a vector with random values from within the specified range in all lanes.
static func random(in: Range<Self.Scalar>
) -> Self Returns a vector with random values from within the specified range in all lanes.
static func random<T>(in: ClosedRange<Self.Scalar>, using: inout T
) -> Self Returns a vector with random values from within the specified range in all lanes, using the given generator as a source for randomness.
static func random<T>(in: Range<Self.Scalar>, using: inout T
) -> Self Returns a vector with random values from within the specified range in all lanes, using the given generator as a source for randomness.
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
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: 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.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: 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.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
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise inequality comparison.
static func .!= (a: Self, b: Self.Scalar
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise inequality comparison.
static func .!= (a: Self, b: Self
) -> SIMDMask<Self.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: Self.Scalar, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise less than comparison.
static func .< (a: Self, b: Self.Scalar
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise less than comparison.
static func .< (a: Self, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise less than comparison.
static func .<= (a: Self.Scalar, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise less than or equal comparison.
static func .<= (a: Self, b: Self.Scalar
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise less than or equal comparison.
static func .<= (a: Self, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise less than or equal comparison.
static func .== (a: Self.Scalar, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise equality comparison.
static func .== (a: Self, b: Self.Scalar
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise equality comparison.
static func .== (a: Self, b: Self
) -> SIMDMask<Self.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: Self.Scalar, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise greater than comparison.
static func .> (a: Self, b: Self.Scalar
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise greater than comparison.
static func .> (a: Self, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise greater than comparison.
static func .>= (a: Self.Scalar, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise greater than or equal comparison.
static func .>= (a: Self, b: Self.Scalar
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise greater than or equal comparison.
static func .>= (a: Self, b: Self
) -> SIMDMask<Self.MaskStorage> Returns a vector mask with the result of a pointwise greater than or equal comparison.
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: 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: inout Self, b: Self.Scalar
) static func /= (a: inout Self, b: Self
) static func == (a: Self, b: Self
) -> Bool Returns a Boolean value indicating whether two vectors are equal.
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
Instance features
var description: String
A textual description of the vector.
var indices: Range<Int>
The valid indices for subscripting the vector.
var leadingZeroBitCount: Self
var nonzeroBitCount: Self
var trailingZeroBitCount: Self
func addProduct(Self.Scalar, Self
) func addProduct(Self, Self.Scalar
) func addProduct(Self, Self
) func addingProduct(Self.Scalar, Self
) -> Self func addingProduct(Self, Self.Scalar
) -> Self func addingProduct(Self, Self
) -> Self func clamp(lowerBound: Self, upperBound: Self
) func clamp(lowerBound: Self, upperBound: Self
) func clamped(lowerBound: Self, upperBound: Self
) -> Self func clamped(lowerBound: Self, upperBound: Self
) -> Self func encode(to: any Encoder
) throws Encodes the scalars of this vector into the given encoder in an unkeyed container.
func formSquareRoot(
) func hash(into: inout Hasher
) Hashes the elements of the vector using the given hasher.
func max(
) -> Self.Scalar The greatest scalar in the vector.
func max(
) -> Self.Scalar The greatest element in the vector.
func min(
) -> Self.Scalar The least scalar in the vector.
func min(
) -> Self.Scalar The least element in the vector.
func replace(with: Self.Scalar, where: SIMDMask<Self.MaskStorage>
) Replaces elements of this vector with
other
in the lanes wheremask
istrue
.func replace(with: Self, where: SIMDMask<Self.MaskStorage>
) Replaces elements of this vector with elements of
other
in the lanes wheremask
istrue
.func replacing(with: Self.Scalar, where: SIMDMask<Self.MaskStorage>
) -> Self Returns a copy of this vector, with elements
other
in the lanes wheremask
istrue
.func replacing(with: Self, where: SIMDMask<Self.MaskStorage>
) -> Self Returns a copy of this vector, with elements replaced by elements of
other
in the lanes wheremask
istrue
.func round(FloatingPointRoundingRule
) func rounded(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.
func wrappedSum(
) -> Self.Scalar Returns the sum of the scalars in the vector, computed with wrapping addition.
Citizens in Swift
where Scalar:BinaryFloatingPoint, Scalar:SIMDScalar
Type members
init<Other>(SIMD4<Other>
) Creates a new vector from the given vector of floating-point values.
init<Other>(SIMD4<Other>
) Creates a new vector from the given vector of integers.
Citizens in Swift
where Scalar:SIMDScalar
Conformances
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Escapable
Type members
init(SIMD3<Scalar>, Scalar
) A four-element vector created by appending a scalar to a three-element vector.
Instance members
Citizens in Swift
where Scalar:SIMDScalar, Scalar:FixedWidthInteger
Type members
init<Other>(SIMD4<Other>, rounding: FloatingPointRoundingRule
) Creates a new vector from the given vector, rounding the given vector’s of elements using the specified rounding rule.
init<Other>(clamping: SIMD4<Other>
) Creates a new vector from the given vector, clamping the values of the given vector’s elements if necessary.
init<Other>(truncatingIfNeeded: SIMD4<Other>
) Creates a new vector from the given vector, truncating the bit patterns of the given vector’s elements if necessary.
Citizens in Swift
where Scalar:SIMDScalar, Scalar:Sendable, Scalar.SIMD4Storage:Sendable
Conformances
Citizens in Swift
where Scalar:SIMDScalar, Scalar.SIMD4Storage:BitwiseCopyable
Conformances
Citizens in Swift
where Scalar == Double
Type members
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == Float
Type members
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == Int
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == UInt
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == Int8
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == Int16
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == Int32
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == Int64
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == UInt8
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == UInt16
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == UInt32
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == UInt64
Type members
static func &* (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The pointwise wrapping product of two vectors.
static func &*= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the pointwise wrapping product of two vectors.
static func &+ (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping sum of two vectors.
static func &+= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping sum of the two vectors.
static func &- (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMD4<Scalar> The wrapping difference of two vectors.
static func &-= (a: inout SIMD4<Scalar>, b: SIMD4<Scalar>
) Updates the left hand side with the wrapping difference of the two vectors.
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Citizens in Swift
where Scalar == Float16
Type members
static func .!= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise inequality comparison.
static func .< (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than comparison.
static func .<= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise less-than-or-equal-to comparison.
static func .== (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise equality comparison.
static func .> (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than comparison.
static func .>= (a: SIMD4<Scalar>, b: SIMD4<Scalar>
) -> SIMDMask<SIMD4<Scalar>.MaskStorage> A vector mask with the result of a pointwise greater-than-or-equal-to comparison.
Available in _Differentiation
Type features
Available in _Differentiation
where Scalar:Differentiable, Scalar:BinaryFloatingPoint, Scalar:SIMDScalar, Scalar.TangentVector:BinaryFloatingPoint
Conformances
protocol Differentiable
A type that mathematically represents a differentiable manifold whose tangent spaces are finite-dimensional.
Typealiases
Available in _Differentiation
where Scalar:FloatingPoint, Scalar:SIMDScalar
Conformances
protocol AdditiveArithmetic
A type with values that support addition and subtraction.
Type features
static func + (x: Self
) -> Self Returns the given number unchanged.
static func += (lhs: inout Self, rhs: Self
) static func -= (lhs: inout Self, rhs: Self
)