Skip to content

Commit 47c9495

Browse files
author
jax authors
committed
Return early from eigh for small matrices. This was accidentally removed cl/577222219.
PiperOrigin-RevId: 627168970
1 parent 1f4c31d commit 47c9495

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jax/_src/lax/eigh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ def eigh(
554554
if compute_slice:
555555
eig_vals = eig_vals[subset_by_index[0] : subset_by_index[1]]
556556
eig_vecs = eig_vecs[:, subset_by_index[0] : subset_by_index[1]]
557+
return eig_vals, eig_vecs
557558

558559
n = N if n is None else n
559560
with jax.default_matmul_precision(precision):

0 commit comments

Comments
 (0)