Skip to content

Implement LinearAlgebra.adjoint #767

@Tortar

Description

@Tortar

I noticed that adjoint doesn't work:

julia> using LinearAlgebra

julia> adjoint(fsprand(Bool, 10^2, 10^2, 0.01))
ERROR: MethodError: no method matching adjoint(::Tensor{SparseCOOLevel{2, Tuple{…}, Vector{…}, Tuple{…}, ElementLevel{…}}})

Closest candidates are:
  adjoint(::Missing)
   @ Base missing.jl:101
  adjoint(::LinearAlgebra.AdjointFactorization)
   @ LinearAlgebra ~/.julia/juliaup/julia-1.10.10+0.x64.linux.gnu/share/julia/stdlib/v1.10/LinearAlgebra/src/factorization.jl:61
  adjoint(::BunchKaufman)
   @ LinearAlgebra ~/.julia/juliaup/julia-1.10.10+0.x64.linux.gnu/share/julia/stdlib/v1.10/LinearAlgebra/src/bunchkaufman.jl:283
  ...

Stacktrace:
 [1] top-level scope
   @ REPL[80]:1
Some type information was truncated. Use `show(err)` to see complete types.

while

using SparseArrays
adjoint(sprand(Float64, 10^2, 10^2, 0.01))

works.

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