Discussion 解説
Equivalent to: 次に等しい:
var result = Self()
for i in indices {
result[i] = mask[i] ? other[i] : self[i]
}
other
in the lanes where mask
is true
.
このベクターのコピーを返します、mask
がtrue
であるところの、レーンの中の要素other
を持ちます。
Availability
Technology
func replacing(with other: SIMD4
<Scalar>, where mask: SIMDMask
<SIMD4
<Scalar.SIMDMaskScalar
>>) -> SIMD4
<Scalar>
Equivalent to: 次に等しい:
var result = Self()
for i in indices {
result[i] = mask[i] ? other[i] : self[i]
}