Skip to content

Commit 50061a4

Browse files
committed
SectorMismatch
1 parent d9bcfdc commit 50061a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/factorizations/truncation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ MAK.findtruncated_svd(values::SectorVector, strategy::TruncationByError) =
259259
MAK.findtruncated(values, strategy)
260260

261261
function MAK.findtruncated(values::SectorVector, strategy::TruncationSpace)
262-
sectortype(values) == sectortype(strategy) || throw(SpaceMismatch("sectortype of truncation strategy does not match values"))
262+
sectortype(values) == sectortype(strategy) || throw(SectorMismatch("sectortype of truncation strategy does not match values"))
263263
blockstrategy(c) = truncrank(dim(strategy.space, c); strategy.by, strategy.rev)
264264
return SectorDict(c => MAK.findtruncated(d, blockstrategy(c)) for (c, d) in pairs(values))
265265
end
266266
function MAK.findtruncated_svd(values::SectorVector, strategy::TruncationSpace)
267-
sectortype(values) == sectortype(strategy) || throw(SpaceMismatch("sectortype of truncation strategy does not match values"))
267+
sectortype(values) == sectortype(strategy) || throw(SectorMismatch("sectortype of truncation strategy does not match values"))
268268
blockstrategy(c) = truncrank(dim(strategy.space, c); strategy.by, strategy.rev)
269269
return SectorDict(c => MAK.findtruncated_svd(d, blockstrategy(c)) for (c, d) in pairs(values))
270270
end

0 commit comments

Comments
 (0)