Skip to content

size() returns Tuple of Tuples instead of Tuple #25

@Benoit9

Description

@Benoit9

I am using the Conv operator as the first argument matrix-like operator in the Krylov.jl optimization functions.

It fails because the size() function applied to a Conv object does not return the expected tuple. Instead of

(m, n)

The Krylov.jl optimizer gets:

((m,), (n,))

If I override Base.size, it all works beautifully. Shouldn't the size operator conform to what is expected of a Matrix-like operator? Am I doing something wrong?

Edit: in order to silence a warning, I also had to override eltype() to return Float64 (in my case) instead of Any.

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