We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff(diff(Fourier()))[0.0, [1]]
The following works:
julia> using ClassicalOrthogonalPolynomials julia> diff(diff(Legendre()))[0.0, 1] 0.0 julia> diff(diff(Legendre()))[0.0, [1]] 1-element Vector{Float64}: 0.0 julia> diff(diff(Fourier()))[0.0, 1] 0.0
but
julia> diff(diff(Fourier()))[0.0, [1]] ERROR: MethodError: no method matching Int64(::Infinities.InfiniteCardinal{0}) The type `Int64` exists, but no method is defined for this combination of argument types when trying to construct it. Closest candidates are: (::Type{T})(::T) where T<:Number @ Core boot.jl:900 Int64(::Float64) @ Base float.jl:990 Int64(::Float32) @ Base float.jl:990 ... Stacktrace: [1] convert(::Type{Int64}, x::Infinities.InfiniteCardinal{0}) @ Base .\number.jl:7 [2] searchsortedfirst(a::InfiniteArrays.InfStepRange{…}, x::Infinities.InfiniteCardinal{…}, o::Base.Order.ForwardOrdering) @ Base.Sort .\sort.jl:0 [3] searchsortedfirst(v::InfiniteArrays.InfStepRange{…}, x::Infinities.InfiniteCardinal{…}; lt::Function, by::Function, rev::Nothing, order::Base.Order.ForwardOrdering) @ Base.Sort .\sort.jl:303 [4] _searchsortedfirst(a::InfiniteArrays.InfStepRange{Int64, Int64}, k::Infinities.InfiniteCardinal{0}) @ BlockArrays C:\Users\djv23\.julia\packages\BlockArrays\VccC2\src\blockaxis.jl:400 [5] findblock(b::BlockArrays.BlockedOneTo{Int64, InfiniteArrays.InfStepRange{…}}, k::Infinities.InfiniteCardinal{0}) @ BlockArrays C:\Users\djv23\.julia\packages\BlockArrays\VccC2\src\blockaxis.jl:409 [6] colsupport(::BlockArrays.BlockLayout{…}, A::LinearAlgebra.Transpose{…}, j::BlockArrays.BlockedOneTo{…}) @ BlockArrays C:\Users\djv23\.julia\packages\BlockArrays\VccC2\src\blocklinalg.jl:65 [7] colsupport(A::LinearAlgebra.Transpose{…}, j::BlockArrays.BlockedOneTo{…}) @ ArrayLayouts C:\Users\djv23\.julia\packages\ArrayLayouts\48qDX\src\memorylayout.jl:662 [8] _mul_args_colsupport(a::LinearAlgebra.Transpose{…}, kr::BlockArrays.BlockedOneTo{…}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:198 [9] __mul_args_cols(jr::BlockArrays.BlockedOneTo{…}, z::LinearAlgebra.Transpose{…}, y::LinearAlgebra.Transpose{…}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:204 [10] _mul_args_cols(::Float64, ::QuasiArrays.PermutedDimsQuasiArray{…}, ::LinearAlgebra.Transpose{…}, ::Vararg{…}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:206 [11] _mat_mul_arguments(args::Tuple{…}, ::Tuple{…}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:231 [12] _vec_mul_arguments(args::Tuple{…}, ::Tuple{…}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:245 [13] _vec_mul_arguments(args::Tuple{…}, ::Tuple{…}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:252 [14] _vec_mul_arguments(V::SubArray{Float64, 1, QuasiArrays.ApplyQuasiMatrix{…}, Tuple{…}, false}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:256 [15] arguments(::LazyArrays.ApplyLayout{…}, V::SubArray{…}) @ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:259 [16] sub_materialize @ C:\Users\djv23\.julia\packages\LazyArrays\Qs2fz\src\linalg\mul.jl:261 [inlined] [17] sub_materialize @ C:\Users\djv23\.julia\packages\ArrayLayouts\48qDX\src\ArrayLayouts.jl:132 [inlined] [18] layout_getindex @ C:\Users\djv23\.julia\packages\ArrayLayouts\48qDX\src\ArrayLayouts.jl:138 [inlined] [19] _getindex(::Type, ::IndexCartesian, A::QuasiArrays.ApplyQuasiMatrix{…}, I::Tuple{…}) @ QuasiArrays C:\Users\djv23\.julia\packages\QuasiArrays\31vF4\src\abstractquasiarray.jl:381 [20] _getindex @ C:\Users\djv23\.julia\packages\QuasiArrays\31vF4\src\abstractquasiarray.jl:372 [inlined] [21] getindex(::QuasiArrays.ApplyQuasiMatrix{Float64, typeof(*), Tuple{…}}, ::Float64, ::Vector{Int64}) @ QuasiArrays C:\Users\djv23\.julia\packages\QuasiArrays\31vF4\src\abstractquasiarray.jl:367 [22] top-level scope @ REPL[21]:1 Some type information was truncated. Use `show(err)` to see complete types.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following works:
but
The text was updated successfully, but these errors were encountered: