Contents

makeArray(of:batchSize:)

Returns a new array that contains a copy of the n-dimensional array descriptor’s data.

Declaration

func makeArray<T>(of scalarType: T.Type, batchSize: Int = 1) -> [T]?

Parameters

  • scalarType:

    The data type of the data.

  • batchSize:

    The number of batches of data.