init(data:scalarType:shape:)
Returns a new n-dimensional array descriptor that references the same data as the specified raw pointer.
Declaration
init?(data: UnsafeMutableRawBufferPointer, scalarType: any BNNSScalar.Type, shape: BNNS.Shape)Parameters
- data:
A pointer to the underlying data.
- scalarType:
The data type of the data.
- shape:
The shape of the n-dimensional array descriptor.