Contents

init(data:shape:)

Returns a new n-dimensional array descriptor that references the same data as the specified pointer.

Declaration

init?<T>(data: UnsafeMutableBufferPointer<T>, shape: BNNS.Shape) where T : BNNSScalar

Parameters

  • data:

    A pointer to the underlying data.

  • shape:

    The shape of the n-dimensional array descriptor.

See Also

Creating an Array Descriptor