Skip to content

abrupt in code #643

Closed
Closed

Description

@tangyu-ty

image
Why is it so abrupt in the middle of the code?(empty = Array)

demo_array.py in examps

Activity

  1. kif commented on Oct 20, 2022

    @kif
    Contributor

    I guess it is just a way to declare empty (which is a factory to generate an empty array) with the same API as the constructor of the class ?

  2. tangyu-ty commented on Oct 20, 2022

    @tangyu-ty
    Author

    sorry, it's in pyopencl/array.py

    I just wonder why it is placed in the middle of some methods of this module instead of the beginning or the end。'Array' is a class。

    class Array is between 338 to 2294. (Number of rows)
    Next are some methods or class of array.py

  3. tangyu-ty commented on Oct 20, 2022

    @tangyu-ty
    Author

    I guess it is just a way to declare empty (which is a factory to generate an empty array) with the same API as the constructor of the class ?

    image

  4. Repository owner locked and limited conversation to collaborators on Oct 20, 2022
  5. converted this issue into a discussion #644 on Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions