We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afcd148 commit 3852842Copy full SHA for 3852842
1 file changed
src/factorizations/matrixalgebrakit.jl
@@ -31,6 +31,7 @@ for f! in (
31
:left_polar!, :right_polar!,
32
)
33
@eval function MAK.$f!(t::AbstractTensorMap, F, alg::AbstractAlgorithm)
34
+ $(f! in (:eig_full!, :eigh_full!) && :(LinearAlgebra.checksquare(t)))
35
foreachblock(t, F...) do _, (tblock, Fblocks...)
36
Fblocks′ = $f!(tblock, Fblocks, alg)
37
# deal with the case where the output is not in-place
@@ -50,6 +51,7 @@ for f! in (
50
51
:project_hermitian!, :project_antihermitian!, :project_isometric!,
52
53
@eval function MAK.$f!(t::AbstractTensorMap, N, alg::AbstractAlgorithm)
54
+ $(f! in (:eig_vals!, :eigh_vals!, :project_hermitian!, :project_antihermitian!) && :(LinearAlgebra.checksquare(t)))
55
foreachblock(t, N) do _, (tblock, Nblock)
56
Nblock′ = $f!(tblock, Nblock, alg)
57
# deal with the case where the output is not the same as the input
0 commit comments