struct Array<Element> : _DestructorSafeContainer
  • Declaration

    public typealias AllKeyPaths = [PartialKeyPath<Array>]
  • Declaration

    public var allKeyPaths: [PartialKeyPath<Array>] { get }
  • Creates an Array with the same shape and scalars as the specified numpy.ndarray instance.

    Precondition

    The numpy Python package must be installed.

    Declaration

    public init?(numpy numpyArray: PythonObject)

    Parameters

    numpyArray

    The numpy.ndarray instance to convert.

    Return Value

    numpyArray converted to an Array. Returns nil if numpyArray is not 1-D or does not have a compatible scalar dtype.

  • Creates a 1-D numpy.ndarray instance with the same scalars as this Array.

    Precondition

    The numpy Python package must be installed.

    Declaration

    func makeNumpyArray() -> PythonObject