-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
using VecchiaMLE
using SparseArrays
n = 20
k = 10
Number_of_Samples = 100
params = [5.0, 0.2, 2.25, 0.25]
MatCov = VecchiaMLE.generate_MatCov(n, params)
samples = VecchiaMLE.generate_Samples(MatCov, n, Number_of_Samples)
iVecchiaMLE = VecchiaMLE.VecchiaMLEInput(n, k, samples, Number_of_Samples, 5, 1)
pres_chol = Matrix{eltype(iVecchiaMLE.samples)}(undef, iVecchiaMLE.n^2, iVecchiaMLE.n^2)
fill!(pres_chol, zero(eltype(iVecchiaMLE.samples)))
diagnostics = VecchiaMLE.Diagnostics(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0)
xyGrid = generate_xyGrid(iVecchiaMLE.n)
model = VecchiaMLE.VecchiaModelCPU(iVecchiaMLE.samples, iVecchiaMLE.k, xyGrid)
using NLPModelsTest
print_nlp_allocations(model)ERROR: MethodError: no method matching (::Colon)(::Int64, ::Vector{Int64})
The function `Colon()` exists, but no method is defined for this combination of argument types.
Closest candidates are:
(::Colon)(::T, ::Any, ::T) where T<:Real
@ Base range.jl:50
(::Colon)(::A, ::Any, ::C) where {A<:Real, C<:Real}
@ Base range.jl:10
(::Colon)(::T, ::Any, ::T) where T
@ Base range.jl:49
...
Stacktrace:
[1] jprod!(nlp::VecchiaMLE.VecchiaModel{Float64, Vector{…}}, x::Vector{Float64}, v::Vector{Float64}, Jv::Vector{Float64})
@ VecchiaMLE ~/Bureau/git/VecchiaMLE.jl/src/models/VecchiaMLE_NLPModel.jl:242
[2] test_allocs_nlpmodels(nlp::VecchiaMLE.VecchiaModel{Float64, Vector{Float64}}; linear_api::Bool, exclude::Vector{Any})
@ NLPModelsTest ~/.julia/packages/NLPModelsTest/fKFni/src/allocs_model.jl:95
[3] test_allocs_nlpmodels
@ ~/.julia/packages/NLPModelsTest/fKFni/src/allocs_model.jl:11 [inlined]
[4] #print_nlp_allocations#209
@ ~/.julia/packages/NLPModelsTest/fKFni/src/allocs_model.jl:356 [inlined]
[5] print_nlp_allocations(io::Base.TTY, nlp::VecchiaMLE.VecchiaModel{Float64, Vector{Float64}})
@ NLPModelsTest ~/.julia/packages/NLPModelsTest/fKFni/src/allocs_model.jl:349
[6] print_nlp_allocations(nlp::VecchiaMLE.VecchiaModel{Float64, Vector{Float64}}; kwargs::@Kwargs{})
@ NLPModelsTest ~/.julia/packages/NLPModelsTest/fKFni/src/allocs_model.jl:346
[7] print_nlp_allocations(nlp::VecchiaMLE.VecchiaModel{Float64, Vector{Float64}})
@ NLPModelsTest ~/.julia/packages/NLPModelsTest/fKFni/src/allocs_model.jl:345
[8] top-level scope
@ REPL[29]:1
Some type information was truncated. Use `show(err)` to see complete types.The function print_nlp_allocations is useful to detect some memory leaks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working