Operatorswift 6.0.1Swift
.&=(_:_:)
Replaces a
with the pointwise logical conjunction of a
and b
.
static func .&= (a: inout SIMDMask<Storage>, b: SIMDMask<Storage>)
Equivalent to:
for i in a.indices {
a[i] = a[i] && b[i]
}
Other members in extension
Type members
static func random(
) -> SIMDMask<Storage> Returns a vector mask with
true
orfalse
randomly assigned in each lane.static func random<T>(using: inout T
) -> SIMDMask<Storage> Returns a vector mask with
true
orfalse
randomly assigned in each lane, using the given generator as a source for randomness.static func .! (a: SIMDMask<Storage>
) -> SIMDMask<Storage> A vector mask that is the pointwise logical negation of the input.
static func .& (a: SIMDMask<Storage>, b: SIMDMask<Storage>
) -> SIMDMask<Storage> A vector mask that is the pointwise logical conjunction of the inputs.
static func .& (a: SIMDMask<Storage>, b: Bool
) -> SIMDMask<Storage> A vector mask that is the pointwise logical conjunction of the inputs.
static func .& (a: Bool, b: SIMDMask<Storage>
) -> SIMDMask<Storage> A vector mask that is the pointwise logical conjunction of the inputs.
static func .&= (a: inout SIMDMask<Storage>, b: Bool
) Replaces
a
with the pointwise logical conjunction ofa
andb
.static func .^ (a: SIMDMask<Storage>, b: SIMDMask<Storage>
) -> SIMDMask<Storage> A vector mask that is the pointwise exclusive or of the inputs.
static func .^ (a: SIMDMask<Storage>, b: Bool
) -> SIMDMask<Storage> A vector mask that is the pointwise exclusive or of the inputs.
static func .^ (a: Bool, b: SIMDMask<Storage>
) -> SIMDMask<Storage> A vector mask that is the pointwise exclusive or of the inputs.
static func .^= (a: inout SIMDMask<Storage>, b: SIMDMask<Storage>
) Replaces
a
with the pointwise exclusive or ofa
andb
.static func .^= (a: inout SIMDMask<Storage>, b: Bool
) Replaces
a
with the pointwise exclusive or ofa
andb
.static func .| (a: SIMDMask<Storage>, b: SIMDMask<Storage>
) -> SIMDMask<Storage> A vector mask that is the pointwise logical disjunction of the inputs.
static func .| (a: SIMDMask<Storage>, b: Bool
) -> SIMDMask<Storage> A vector mask that is the pointwise logical disjunction of the inputs.
static func .| (a: Bool, b: SIMDMask<Storage>
) -> SIMDMask<Storage> A vector mask that is the pointwise logical disjunction of the inputs.
static func .|= (a: inout SIMDMask<Storage>, b: SIMDMask<Storage>
) Replaces
a
with the pointwise logical disjunction ofa
andb
.static func .|= (a: inout SIMDMask<Storage>, b: Bool
) Replaces
a
with the pointwise logical disjunction ofa
andb
.