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 c8bea98 commit da3c147Copy full SHA for da3c147
src/operators/mpohamiltonian.jl
@@ -156,7 +156,7 @@ function InfiniteMPOHamiltonian{O}(W_mats::Vector{<:Matrix}) where {O<:MPOTensor
156
size(W_mat, 1) == size(W_mat, 2) ||
157
throw(ArgumentError("matrices should be square"))
158
end
159
- allequal(Base.Fix1(size, 1), W_mats) ||
+ allequal(Base.Fix2(size, 1), W_mats) ||
160
throw(ArgumentError("matrices should have the same size"))
161
nlvls = size(W_mats[1], 1)
162
0 commit comments