Skip to content

Generic array types #176

@gdalle

Description

@gdalle

Here is a summary of some of the issues encounted with generic array types:

  • Krylov.jl solvers want to work with vectors and not arrays, so we reshape everything first
  • DifferentiationInterface.jl v0.7 imposes that preparation types equal execution types (unless we relax the "strict" option)
  • LinearOperators.jl wants V(undef, n) to be defined for any vector type V, which errors e.g. for V = ComponentVector so in general it is easier to set V = Vector
  • Pre-allocating a space with the correct vector type and doing copyto!(::CustomType, ::Vector) before the pullback doesn't work when CustomType is not writable (e.g. reshape of UpperTriangular)

Related:

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