Skip to content

Overload for Adjoint #702

@aml5600

Description

@aml5600

There are a variety of overloads for create_array, one of which is for transposed vectors:

@inline function create_array(A::Type{<:Transpose{T,P}}, S, nd::Val, d::Val, elems...) where {T,P}
    create_array(P, S, nd, d, elems...)
end

would it make sense to add an overload for Adjoint as well? Hit this case when using ' versus 'transpose'. I addressed this by using the latter, but figure that (unless it is intentionally omitted),

@inline function create_array(A::Type{<:Adjoint{T,P}}, S, nd::Val, d::Val, elems...) where {T,P}
    create_array(P, S, nd, d, elems...)
end

would be a nice addition.

Thanks!

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