Skip to content

Commit

Permalink
Update TensorKit v0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jan 3, 2025
1 parent ec61d49 commit c285b58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"

[compat]
TensorKit = "0.13, 0.14"
TensorKit = "0.14"
julia = "1.10"

[extras]
Expand Down
5 changes: 3 additions & 2 deletions src/grassmann.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ mutable struct GrassmannTangent{T<:AbstractTensorMap,
Z::AbstractTensorMap{TT₂,S,N₁,N₂}) where {TT₁,TT₂,S,N₁,N₂}
T = typeof(W)
TT = promote_type(float(scalartype(W)), scalartype(Z))
Tr = real(TT)
M = similarstoragetype(W, TT)
Mr = similarstoragetype(W, real(TT))
Mr = similarstoragetype(W, Tr)
TU = tensormaptype(S, N₁, 1, M)
TS = isreal(sectortype(S)) ? tensormaptype(S, 1, 1, Mr) : tensormaptype(S, 1, 1, M)
TS = DiagonalTensorMap{Tr,S,Mr}
TV = tensormaptype(S, 1, N₂, M)
return new{T,TU,TS,TV}(W, Z, nothing, nothing, nothing)
end
Expand Down

0 comments on commit c285b58

Please sign in to comment.