Skip to content

matmul! with ReshapedArray of an Adjoint does not work #186

Open
@nathanaelbosch

Description

@nathanaelbosch

Is there any way to get this to work? Example code:

  X = reshape(rand(2, 3)', 2, 3)
  N = rand(2, 2)
  V = rand(2, 3)
  typeof(X) # Base.ReshapedArray{Float64, 2, Adjoint{Float64, Matrix{Float64}}, Tuple{Base.MultiplicativeInverses.SignedMultiplicativeInverse{Int64}}}
  typeof(N) # Matrix{Float64} (alias for Array{Float64, 2})
  typeof(V) # Matrix{Float64} (alias for Array{Float64, 2})
  matmul!(X, N, V)

Errors with:

ERROR: MethodError: no method matching matmul!(::Base.ReshapedArray{Float64, 2, …}, ::Matrix{Float64}, ::Matrix{Float64}, ::StaticInt{1}, ::StaticInt{0}, ::Nothing, ::Nothing, ::Nothing)

Closest candidates are:
  matmul!(::AbstractVecOrMat, ::AbstractMatrix, ::AbstractVecOrMat, ::Any, ::Any, ::Any, ::Nothing, ::StaticInt{2})
   @ Octavian ~/.julia/packages/Octavian/iOEo8/src/matmul.jl:484
  matmul!(::AbstractVecOrMat, ::AbstractMatrix, ::AbstractVecOrMat, ::Any, ::Any, ::Any, ::Any, ::StaticInt)
   @ Octavian ~/.julia/packages/Octavian/iOEo8/src/matmul.jl:510
  matmul!(::AbstractVecOrMat, ::AbstractMatrix, ::AbstractVecOrMat, ::Any, ::Any, ::Any)
   @ Octavian ~/.julia/packages/Octavian/iOEo8/src/matmul.jl:474
  ...

Stacktrace:
 [1] matmul! @ Octavian ~/.julia/packages/Octavian/iOEo8/src/matmul.jl:437

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