Skip to content

Matrix.Evd() hangs up #595

Open
Open
@kkkmail

Description

@kkkmail

Given the following complex matrix:

   (0., 0.)  (1., 0.)     (0., 0.)  (0., 0.)
(2.25, 0.)  (0., 0.)     (0., 0.)  (0., 0.)
   (0., 0.)  (0., 0.)     (0., 0.)  (1., 0.)
   (0., 0.)  (0., 0.)  (2.25, 0.)  (0., 0.)

call to Evd() hangs up and never comes back. See enclosed FSX script.

#r "System.Numerics.dll"
#r "../packages/MathNet.Numerics.4.5.1/lib/net461/MathNet.Numerics.dll"
#r "../packages/MathNet.Numerics.FSharp.4.5.1/lib/net45/MathNet.Numerics.FSharp.dll"

open System.Numerics
open MathNet.Numerics.LinearAlgebra

let cplx a = Complex(a, 0.0)

let c = 
    [
        [cplx 0.0; cplx 1.0; cplx 0.0; cplx 0.0]
        [cplx 2.25; cplx 0.0; cplx 0.0; cplx 0.0]
        [cplx 0.0; cplx 0.0; cplx 0.0; cplx 1.0]
        [cplx 0.0; cplx 0.0; cplx 2.25; cplx 0.0]
    ]
    |> matrix

printfn "c = %A" c

#time
printfn "Calculating Evd"
let ec = c.Evd()
printfn "ec = %A" ec
#time

EvdErr_01.zip

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