Skip to content

BUG: np.reshape missing optional copy argument #27373

@Illviljan

Description

@Illviljan

Describe the issue:

According to the array api reshape is supposed to have a copy argument.

Reproduce the code example:

import numpy as np
import array_api_strict as xps

xps.reshape(xps.zeros((1,2,3)), (3,2,1), copy=True)
np.reshape(np.zeros((1,2,3)), (3,2,1), copy=True)  # TypeError: reshape() got an unexpected keyword argument 'copy'

Error message:

No response

Python and NumPy Versions:

2.0.2
3.12.5 | packaged by conda-forge | (main, Aug 8 2024, 18:24:51) [MSC v.1940 64 bit (AMD64)]

Runtime Environment:

No response

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions