Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apkille committed Jul 27, 2024
1 parent ecb593c commit ee4c3d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/operators_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,9 @@ Base.any(f::Function, x::Operator; kwargs...) = any(f, x.data; kwargs...) # ODE
Base.all(f::Function, x::Operator; kwargs...) = all(f, x.data; kwargs...)
Base.fill!(x::Operator, a) = typeof(x)(x.basis_l, x.basis_r, fill!(x.data, a))
Base.ndims(x::Type{Operator{Bl,Br,A}}) where {Bl,Br,N,A<:AbstractMatrix{N}} = ndims(A)
Broadcast.similar(x::Operator, t) = typeof(x)(x.basis_l, x.basis_r, copy(x.data))
Base.similar(x::Operator, t) = typeof(x)(x.basis_l, x.basis_r, copy(x.data))

Check warning on line 464 in src/operators_dense.jl

View check run for this annotation

Codecov / codecov/patch

src/operators_dense.jl#L460-L464

Added lines #L460 - L464 were not covered by tests
using RecursiveArrayTools
RecursiveArrayTools.recursivecopy!(dst::Operator{Bl,Br,A},src::Operator{Bl,Br,A}) where {Bl,Br,A} = copy!(dst.data,src.data) # ODE in-place equations
RecursiveArrayTools.recursivecopy!(dest::Operator{Bl,Br,A},src::Operator{Bl,Br,A}) where {Bl,Br,A} = copyto!(dest,src) # ODE in-place equations
RecursiveArrayTools.recursivecopy(x::Operator) = copy(x)
RecursiveArrayTools.recursivecopy(x::AbstractArray{T}) where {T<:Operator} = copy(x)
RecursiveArrayTools.recursivefill!(x::Operator, a) = fill!(x, a)

Check warning on line 469 in src/operators_dense.jl

View check run for this annotation

Codecov / codecov/patch

src/operators_dense.jl#L466-L469

Added lines #L466 - L469 were not covered by tests
2 changes: 1 addition & 1 deletion src/states.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Base.eltype(::Type{Bra{B,A}}) where {B,N,A<:AbstractVector{N}} = N
Base.any(f::Function, x::T; kwargs...) where {T<:Union{Ket, Bra}} = any(f, x.data; kwargs...) # ODE nan checks
Base.all(f::Function, x::T; kwargs...) where {T<:Union{Ket, Bra}} = all(f, x.data; kwargs...)
Base.fill!(x::T, a) where {T<:Union{Ket, Bra}} = typeof(x)(x.basis, fill!(x.data, a))
Broadcast.similar(x::T, t) where {T<:Union{Ket, Bra}} = typeof(x)(x.basis, similar(x.data))
Base.similar(x::T, t) where {T<:Union{Ket, Bra}} = typeof(x)(x.basis, similar(x.data))

Check warning on line 254 in src/states.jl

View check run for this annotation

Codecov / codecov/patch

src/states.jl#L249-L254

Added lines #L249 - L254 were not covered by tests
using RecursiveArrayTools
RecursiveArrayTools.recursivecopy!(dest::Ket{B,A},src::Ket{B,A}) where {B,A} = copyto!(dest, src) # ODE in-place equations
RecursiveArrayTools.recursivecopy!(dest::Bra{B,A},src::Bra{B,A}) where {B,A} = copyto!(dest, src)
Expand Down

0 comments on commit ee4c3d6

Please sign in to comment.