Skip to content

Commit 7dad258

Browse files
committed
Better isometric check
1 parent cd5516b commit 7dad258

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/factorizations/utility.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ using MatrixAlgebraKit: MatrixAlgebraKit
66
# https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/v0.6.0/src/common/matrixproperties.jl#L40-L64
77
# which isn't well supported right now for block sparse matrices.
88
# TODO: Improve `diagview` for block sparse matrices and remove these definitions.
9-
function MatrixAlgebraKit.is_left_isometric(A::AbstractBlockSparseMatrix; isapprox_kwargs...)
9+
function MatrixAlgebraKit.is_left_isometric(
10+
A::AnyAbstractBlockSparseMatrix; isapprox_kwargs...
11+
)
1012
return isapprox(A' * A, LinearAlgebra.I; isapprox_kwargs...)
1113
end
12-
function MatrixAlgebraKit.is_right_isometric(A::AbstractBlockSparseMatrix; isapprox_kwargs...)
14+
function MatrixAlgebraKit.is_right_isometric(
15+
A::AnyAbstractBlockSparseMatrix; isapprox_kwargs...
16+
)
1317
return MatrixAlgebraKit.is_left_isometric(A'; isapprox_kwargs...)
1418
end
1519

0 commit comments

Comments
 (0)