Skip to content

Type promotion tests #2

Closed
Closed
@asmeurer

Description

@asmeurer

Here is the spec for type promotion rules: https://github.com/data-apis/array-api/blob/master/spec/API_specification/type_promotion.md

Questions:

  • As with Broadcasting tests #1, how do I create inputs for the tests? I didn't see any specification on how to create arrays or how to specify dtypes.

  • Do I read the document correctly in that all the listed dtypes are required to be implemented?

  • The bullet points at the bottom specify different semantics for zero-dimensional arrays and scalars. Is the distinction between these two spelled out somewhere? As far as I know, NumPy distinguishes these types but they mostly behave the same (and they seem to both participate in type promotion).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions