Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Arrays/Arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ activate_assertions(Arrays) # activate assertions by default

using ReachabilityBase.Comparison: _geq, isapproxzero, _isapprox, _in

import Base: rationalize
import Base: copy, rationalize
import LinearAlgebra: norm, rank

export abs_sum,
Expand Down
4 changes: 4 additions & 0 deletions src/Arrays/SingleEntryVector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ end
return a.v * @view(B[a.i, :])
end

function copy(e::SingleEntryVector)
return SingleEntryVector(e.i, e.n, e.v)
end

# vector-vector multiplication
@inline function At_mul_B(a::SingleEntryVector, b::SingleEntryVector)
if length(a) != length(b)
Expand Down
Loading