Skip to content

Commit fce50b6

Browse files
authored
Fix typo.
1 parent 0fe95f4 commit fce50b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function embed(basis_l::CompositeBasis, basis_r::CompositeBasis,
9090
(opsb.basis_r == basis_r.bases[idxsb]) || throw(IncompatibleBases())
9191
end
9292

93-
S = length(operators) > 1 ? mapreduce(eltype, promote_type, operators) : Any
93+
S = length(operators) > 0 ? mapreduce(eltype, promote_type, operators) : Any
9494
embed_op = tensor([i indices_sb ? ops_sb[indexin(i, indices_sb)[1]] : identityoperator(T, S, basis_l.bases[i], basis_r.bases[i]) for i=1:N]...)
9595

9696
# Embed all joint-subspace operators.

0 commit comments

Comments
 (0)