diff options
Diffstat (limited to 'numpy/_array_api')
-rw-r--r-- | numpy/_array_api/_linear_algebra_functions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_array_api/_linear_algebra_functions.py b/numpy/_array_api/_linear_algebra_functions.py index f57fe292a..99a386866 100644 --- a/numpy/_array_api/_linear_algebra_functions.py +++ b/numpy/_array_api/_linear_algebra_functions.py @@ -122,7 +122,7 @@ def norm(x: array, /, *, axis: Optional[Union[int, Tuple[int, int]]] = None, kee """ # Note: this is different from the default behavior if axis == None and x.ndim > 2: - x = x.flatten() + x = ndarray._new(x._array.flatten()) # Note: this function is being imported from a nondefault namespace return ndarray._new(np.linalg.norm(x._array, axis=axis, keepdims=keepdims, ord=ord)) |