Skip to content

Commit 3945fce

Browse files
committed
some more fixes
1 parent 1ee76e8 commit 3945fce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/factorizations/matrixalgebrakit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ end
112112
function MAK.initialize_output(::typeof(eig_vals!), t::AbstractTensorMap, alg::AbstractAlgorithm)
113113
V_D = fuse(domain(t))
114114
Tc = complex(scalartype(t))
115-
return SectorVector{Tc}(undef, V_cod)
115+
return SectorVector{Tc}(undef, V_D)
116116
end
117117

118118
# QR decomposition

src/tensors/sectorvector.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ block(v::SectorVector{T, I, A}, c::I) where {T, I, A} = Base.getindex(v, c)
6060

6161
# VectorInterface and LinearAlgebra interface
6262
# ----------------------------------------------
63-
VectorInterface.zerovector(v::SectorVector, ::Type{T}) where {T} =
64-
SectorVector(zerovector(parent(v), T), v.structure)
63+
VectorInterface.zerovector(v::SectorVector, ::Type{S}) where {S <: Number} =
64+
SectorVector(zerovector(parent(v), S), v.structure)
6565
VectorInterface.zerovector!(v::SectorVector) = (zerovector!(parent(v)); return v)
6666
VectorInterface.zerovector!!(v::SectorVector) = (zerovector!!(parent(v)); return v)
6767

0 commit comments

Comments
 (0)