From d70980ed563d985cc145923dc9249c11fc792190 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 20 Sep 2023 16:59:10 -0400 Subject: [PATCH] Update basic_problems.jl --- src/problems/basic_problems.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/problems/basic_problems.jl b/src/problems/basic_problems.jl index efa1bf3a0..cd057eba5 100644 --- a/src/problems/basic_problems.jl +++ b/src/problems/basic_problems.jl @@ -426,10 +426,10 @@ SampledIntegralProblem(y::AbstractArray, x::AbstractVector; dim=ndims(y), kwargs The fields match the names of the constructor arguments. """ -struct SampledIntegralProblem{Y, X, D, K} <: AbstractIntegralProblem{false} +struct SampledIntegralProblem{Y, X, K} <: AbstractIntegralProblem{false} y::Y x::X - dim::D + dim::Int kwargs::K @add_kwonly function SampledIntegralProblem(y::AbstractArray, x::AbstractVector; dim = ndims(y), @@ -437,7 +437,7 @@ struct SampledIntegralProblem{Y, X, D, K} <: AbstractIntegralProblem{false} @assert dim <= ndims(y) "The integration dimension `dim` is larger than the number of dimensions of the integrand `y`" @assert length(x)==size(y, dim) "The integrand `y` must have the same length as the sampling points `x` along the integrated dimension." @assert axes(x, 1)==axes(y, dim) "The integrand `y` must obey the same indexing as the sampling points `x` along the integrated dimension." - new{typeof(y), typeof(x), typeof(dim), typeof(kwargs)}(y, x, dim, kwargs) + new{typeof(y), typeof(x), typeof(kwargs)}(y, x, dim, kwargs) end end