Skip to content

Commit 3f7932e

Browse files
wgu9zcbenz
andauthored
Add matrix_norm to array API namespace (#3749)
Co-authored-by: Cheng <git@zcbenz.com>
1 parent 96296e9 commit 3f7932e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/src/linalg.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,4 +733,6 @@ void init_linalg(nb::module_& parent_module) {
733733
>>> logabsdet
734734
array(0.693147, dtype=float32)
735735
)pbdoc");
736+
// Array API standard aliases (https://data-apis.org/array-api/latest/).
737+
parent_module.attr("matrix_norm") = m.attr("norm");
736738
}

0 commit comments

Comments
 (0)