Skip to content

nxn Fill addition UniformScaling errors #170

@theogf

Description

@theogf

Here is a MWE:

julia> K = Fill(1.0, 2, 2)
julia> K + 1e-6 * I
ERROR: ArgumentError: Cannot setindex! to 1.000001 for an AbstractFill with value 1.0.
Stacktrace:
 [1] setindex!
   @ ~/.julia/packages/FillArrays/Vzxer/src/FillArrays.jl:53 [inlined]
 [2] +(A::Fill{Float64, 2, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}, J::UniformScaling{Float64})
   @ LinearAlgebra ~/julia-1.7.1/share/julia/stdlib/v1.7/LinearAlgebra/src/uniformscaling.jl:219
 [3] top-level scope
   @ REPL[28]:1

Observed at JuliaGaussianProcesses/KernelFunctions.jl#432

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions