Contents

makeArray(of:)

Returns an array that contains a copy of this BNNSTensor’s elements.

Declaration

func makeArray<T>(of scalarType: T.Type) -> [T] where T : BNNSScalar

Parameters

  • scalarType:

    The type that the tensor’s memory is bound to.