Skip to content

Commit

Permalink
fix eps types
Browse files Browse the repository at this point in the history
  • Loading branch information
lpawela committed Jul 3, 2024
1 parent 9cc01fa commit 1285383
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/linear_algebra_ext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
function qr_fact(
M::AbstractMatrix{T},
Dcut::Int = typemax(Int),
tol::T = eps();
tol::T = eps(T);
toGPU::Bool = true,
kwargs...,
) where {T<:Real}
Expand All @@ -44,7 +44,7 @@ end
function rq_fact(
M::AbstractMatrix{T},
Dcut::Int = typemax(Int),
tol::T = eps();
tol::T = eps(T);
toGPU::Bool = true,
kwargs...,
) where {T<:Real}
Expand Down
8 changes: 4 additions & 4 deletions src/mps/canonise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function truncate!(
ψ::QMps{T},
s::Symbol,
Dcut::Int = typemax(Int),
tolS::T = eps();
tolS::T = eps(T);
kwargs...,
) where {T<:Real}
@assert s (:left, :right)
Expand All @@ -46,12 +46,12 @@ canonise!(ψ::QMps, ::Val{:right}) = _left_sweep!(ψ, typemax(Int))
canonise!::QMps, ::Val{:left}) = _right_sweep!(ψ, typemax(Int))

function canonise_truncate!(
ψ::QMps,
ψ::QMps{T},
type::Symbol,
Dcut::Int = typemax(Int),
tolS = eps();
tolS::T = eps(T);
kwargs...,
)
) where {T<:Real}
if type == :right
_left_sweep!(ψ, Dcut, tolS; kwargs...)
elseif type == :left
Expand Down

0 comments on commit 1285383

Please sign in to comment.