Skip to content

Commit

Permalink
Remove self-adjoint tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Randl committed Nov 8, 2023
1 parent fada75b commit 424c702
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion lineax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
lower_triangular_tag as lower_triangular_tag,
negative_semidefinite_tag as negative_semidefinite_tag,
positive_semidefinite_tag as positive_semidefinite_tag,
self_adjoint_tag as self_adjoint_tag,
symmetric_tag as symmetric_tag,
transpose_tags as transpose_tags,
transpose_tags_rules as transpose_tags_rules,
Expand Down
2 changes: 0 additions & 2 deletions lineax/_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def __repr__(self):


symmetric_tag = _HasRepr("symmetric_tag")
self_adjoint_tag = _HasRepr("self_adjoint_tag")
diagonal_tag = _HasRepr("diagonal_tag")
tridiagonal_tag = _HasRepr("tridiagonal_tag")
unit_diagonal_tag = _HasRepr("unit_diagonal_tag")
Expand All @@ -37,7 +36,6 @@ def __repr__(self):

for tag in (
symmetric_tag,
self_adjoint_tag,
unit_diagonal_tag,
diagonal_tag,
positive_semidefinite_tag,
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def _construct_matrix_impl(getkey, cond_cutoff, tags, size, dtype):
matrix = jr.normal(getkey(), (size, size), dtype=dtype)
if has_tag(tags, lx.diagonal_tag):
matrix = jnp.diag(jnp.diag(matrix))
if has_tag(tags, lx.self_adjoint_tag):
matrix = matrix + matrix.T.conj()
if has_tag(tags, lx.symmetric_tag):
matrix = matrix + matrix.T
if has_tag(tags, lx.lower_triangular_tag):
Expand Down

0 comments on commit 424c702

Please sign in to comment.