Generic Initializer

init(_:)

Creates a vector from the given sequence.

Declaration

init<S>(_ scalars: S) where S : Sequence, Self.Scalar == S.Element

Parameters

scalars

The elements to use in the vector.

Discussion

Precondition: scalars must have the same number of elements as the vector type.