SIMDStorage

protocol SIMDStorage

A type that can function as storage for a SIMD vector type.

Conforming Types SIMD
Associated Types
associatedtype Scalar

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.

Initializers

init init() Required

Creates a vector with zero in all lanes.

Declaration

init()

Instance Variables

var scalarCount Required

The number of scalars, or elements, in the vector.

Declaration

var scalarCount: Int

Subscripts

subscript subscript(index:) Required

Accesses the element at the specified index.

  • Parameter index: The index of the element to access. index must be in the range 0..<scalarCount.

Declaration

subscript(index: Int) -> Self.Scalar