init(scalars:shape:)
Initialize with a sequence and the shape.
Declaration
init<S>(scalars: S, shape: [Int]) where Scalar == S.Element, S : SequenceParameters
- scalars:
The initializing sequence.
- shape:
The shape
Discussion
The length of the sequence must not be less than the number of scalars in the shaped array.