Skip to content

sqrt of a BigFloat matrix #98

Description

@daanhb

Any chance of getting sqrt to work?

It seems like LinearAlgebra makes assumptions about what schur returns in this function. Example:

julia> using GenericLinearAlgebra
s
julia> A = rand(BigFloat, 2, 2);

julia> sqrt(A)
ERROR: type Schur has no field values
Stacktrace:
 [1] getproperty(F::GenericLinearAlgebra.Schur{BigFloat, Matrix{BigFloat}}, s::Symbol)
   @ GenericLinearAlgebra ~/.julia/packages/GenericLinearAlgebra/tfuHk/src/eigenGeneral.jl:72
 [2] sqrt(A::Matrix{BigFloat})
   @ LinearAlgebra /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/LinearAlgebra/src/dense.jl:865
 [3] top-level scope
   @ REPL[3]:1

(My use case is that taking the square root of a Gram matrix is a neat way to orthogonalize a basis for a function space.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions