Skip to content

Commit ab07344

Browse files
committed
minor typestability improv at _recurrence_matrix
1 parent aec4d04 commit ab07344

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RecurrenceAnalysis"
22
uuid = "639c3291-70d9-5ea2-8c5b-839eba1ee399"
33
repo = "https://github.com/JuliaDynamics/RecurrenceAnalysis.jl.git"
4-
version = "1.0.2"
4+
version = "1.0.3"
55

66
[deps]
77
DelayEmbeddings = "5732040d-69e3-5649-938a-b6b4f237613f"

src/matrices.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,16 @@ function _recurrence_matrix(x::AbstractVecOrMat, y::AbstractVecOrMat,
277277
end
278278

279279
# Core function
280-
function _recurrence_matrix(x::Dataset, y::Dataset, ε, metric::Metric)
281-
x = x.data
282-
y = y.data
280+
function _recurrence_matrix(xx::Dataset, yy::Dataset, ε, metric::Metric)
281+
x = xx.data
282+
y = yy.data
283283
rowvals = Vector{Int}()
284284
colvals = Vector{Int}()
285285
for j in 1:length(y)
286286
nzcol = 0
287287
for i in 1:length(x)
288288
@inbounds if evaluate(metric, x[i], y[j]) ε
289-
push!(rowvals,i)
289+
push!(rowvals, i)
290290
nzcol += 1
291291
end
292292
end

0 commit comments

Comments
 (0)