Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix naming convention: MatrixLike to matrix_like
  • Loading branch information
PixelCode01 committed Oct 1, 2025
commit 342ee9cedc71c3c1586af0d03312ec35764c9fa4
8 changes: 4 additions & 4 deletions matrix/similar_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
__all__ = ["are_similar_matrices"]


MatrixLike = Sequence[Sequence[Any]] | Matrix
matrix_like = Sequence[Sequence[Any]] | Matrix

Comment thread
PixelCode01 marked this conversation as resolved.

def _as_square_matrix(matrix: MatrixLike, *, simplify_entries: bool) -> Matrix:
def _as_square_matrix(matrix: matrix_like, *, simplify_entries: bool) -> Matrix:
"""Return a SymPy matrix after validating that ``matrix`` is square.

Parameters
Expand Down Expand Up @@ -90,13 +90,13 @@
eigenvalue,
tuple(sorted(block_sizes, reverse=True)),
)
for eigenvalue, block_sizes in sorted(summary.items(), key=lambda item: repr(item[0]))

Check failure on line 93 in matrix/similar_matrices.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E501)

matrix/similar_matrices.py:93:89: E501 Line too long (94 > 88)
)


def are_similar_matrices(
matrix_a: MatrixLike,
matrix_b: MatrixLike,
matrix_a: matrix_like,
matrix_b: matrix_like,
*,
simplify_entries: bool = True,
) -> bool:
Expand Down
Loading