Contents

init(scalars:shape:)

Initialize with a sequence and the shape.

Declaration

init<S>(scalars: S, shape: [Int]) where Scalar == S.Element, S : Sequence

Parameters

  • 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.

See Also

Creating a shaped array slice