ProtocolSwift5.9.0
SIMDStorage
A type that can function as storage for a SIMD vector type.
protocol SIMDStorage
The SIMDStorage
protocol defines a storage layout and provides elementwise accesses. Computational operations are defined on the SIMD
protocol, which refines this protocol, and on the concrete types that conform to SIMD
.
Requirements
associatedtype Scalar : Decodable, Encodable, Hashable
The type of scalars in the vector space.
init(
) Creates a vector with zero in all lanes.
var scalarCount: Int
The number of scalars, or elements, in the vector.
subscript(Int
) -> Self.Scalar Accesses the element at the specified index.
Citizens in Swift
Subtypes
protocol SIMD
A SIMD vector of a fixed number of elements.