Giter VIP home page Giter VIP logo

Comments (2)

devmotion avatar devmotion commented on June 3, 2024 1

Your stacktrace indicates that you don't use the latest version of PDMats. PDMats 0.11.3 defines isposdef and hence you should not end up with the fallback definition in LinearAlgebra.

from pdmats.jl.

devmotion avatar devmotion commented on June 3, 2024 1

I checked and I can reproduce the issue with PDMats 0.11.2. However, as expected, it is fixed in PDMats 0.11.3:

(@v1.6) pkg> activate --temp
  Activating new environment at `/tmp/jl_AJ3u6A/Project.toml`

(jl_AJ3u6A) pkg> add PDMats
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
    Updating `/tmp/jl_AJ3u6A/Project.toml`
  [90014a1f] + PDMats v0.11.3
    Updating `/tmp/jl_AJ3u6A/Manifest.toml`
  [90014a1f] + PDMats v0.11.3
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [9a3f8284] + Random
  [9e88b42a] + Serialization
  [2f01184e] + SparseArrays
  [4607b0f0] + SuiteSparse

julia> using PDMats, LinearAlgebra

julia> x = rand(4,4)
4×4 Matrix{Float64}:
 0.78919   0.171766  0.839576   0.446731
 0.416406  0.96419   0.0670805  0.788688
 0.759789  0.67533   0.945455   0.73147
 0.923695  0.436137  0.516336   0.488594

julia> pdm = PDMat(x'*x)
4×4 PDMat{Float64, Matrix{Float64}}:
 2.22671  1.45302  1.8858   1.68805
 1.45302  1.60545  1.07258  1.54426
 1.8858   1.07258  1.86988  1.37182
 1.68805  1.54426  1.37182  1.59537

julia> isposdef(pdm)
true

Since it's fixed in the latest release I'll close the issue 🙂

from pdmats.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.