KrylovKit

Krylov methods for linear problems, eigenvalues, singular values and matrix functions

https://github.com/jutho/krylovkit.jl

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    2 of 17 committers (11.8%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.8%) to scientific vocabulary

Keywords

eigenvalues julia krylov linear-algebra linear-maps singular-values vector

Keywords from Contributors

quantum tensornetworks mps julia-compiler gradient control-flow matrix-exponential factorization automatic-differentiation linear-systems
Last synced: 6 months ago · JSON representation ·

Repository

Krylov methods for linear problems, eigenvalues, singular values and matrix functions

Basic Info
  • Host: GitHub
  • Owner: Jutho
  • License: other
  • Language: Julia
  • Default Branch: master
  • Homepage:
  • Size: 2.37 MB
Statistics
  • Stars: 382
  • Watchers: 12
  • Forks: 47
  • Open Issues: 33
  • Releases: 35
Topics
eigenvalues julia krylov linear-algebra linear-maps singular-values vector
Created over 8 years ago · Last pushed 7 months ago
Metadata Files
Readme License Citation

README.md

KrylovKit.jl

A Julia package collecting a number of Krylov-based algorithms for linear problems, singular value and eigenvalue problems and the application of functions of linear maps or operators to vectors.

| Documentation | Build Status | Digital Object Idenitifier | License | |:-----------------:|:----------------:|:---------------:|:-----------:| | | CI | DOI | license |

Release notes for the latest version

v0.9

KrylovKit v0.9 adds two new sets of functionality: * The function lssolve can be used to solve linear least squares problems, i.e. problems of the form x = argmin(norm(A*x - b)) for a given linear map A and vector b. Currently, only one algorithm is implemented, namely the LSMR algorithm of Fong and Saunders. * There are now new functions reallinsolve and realeigsolve (and reallssolve since v0.9.4), which are useful when using vectors with complex arithmetic, but where the linear map (implemented as a function f) acts as a real linear map, meaning that it only satisfies f(α*x) = α*f(x) when α is a real number. This occurs for example when computing the Jacobian of a complex function that is not holomorphic, e.g. in the context of automatic differentation. This is implemented by simply wrapping the vector as RealVec, which is a specific InnerProductVec type where the redefined inner product forgets about the imaginary part of the original inner function, thereby effectively treating the vector as living in a real vector space. Furthermore, in this setting, only real linear combinations of vectors are allowed, so that for the case of eigsolve, only real eigenvalues and eigenvectors are computed. An error will be thrown if the requested list of eigenvalues contains complex eigenvalues.

In addition, the following is technically a breaking change: * The verbosity system, the different verbosity levels and the output formatting have been redesigned (both in the primal methods and the rrules). The default verbosity level is now WARN_LEVEL, which means that warnings will be printed by default, but all other output (info messages) are suppressed. Before, the default verbosity was such that all output (including warnings) were suppressed.

Overview

KrylovKit.jl accepts general functions or callable objects as linear maps, and general Julia objects with vector like behavior (as defined in the docs) as vectors.

The high level interface of KrylovKit is provided by the following functions: * linsolve: solve linear systems * lssolve: solve least squares problems * eigsolve: find a few eigenvalues and corresponding eigenvectors * geneigsolve: find a few generalized eigenvalues and corresponding vectors * svdsolve: find a few singular values and corresponding left and right singular vectors * exponentiate: apply the exponential of a linear map to a vector * expintegrator: exponential integrator for a linear non-homogeneous ODE, computes a linear combination of the ϕⱼ functions which generalize ϕ₀(z) = exp(z).

Installation

KrylovKit.jl can be installed with the Julia package manager. From the Julia REPL, type ] to enter the Pkg REPL mode and run: pkg> add KrylovKit

Or, equivalently, via the Pkg API: julia julia> import Pkg; Pkg.add("KrylovKit.jl")

Documentation

  • STABLE - documentation of the most recently tagged version.
  • DEVEL - documentation of the in-development version.

Project Status

The package is tested against Julia 1.6, the long-term stable release (1.10), the current stable release as well as nightly builds of the Julia master branch on Linux, macOS, and Windows 64-bit architecture and with 1 and 4 threads.

Questions and Contributions

Contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems.

Owner

  • Name: Jutho
  • Login: Jutho
  • Kind: user

Tensor Network and Quantum Researcher — Julia enthousiast — Professor in Physics at Ghent University

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Haegeman"
  given-names: "Jutho"
  orcid: "https://orcid.org/0000-0002-0858-291X"

title: "KrylovKit"
version: 0.7.0
doi: 10.5281/zenodo.10622234
date-released: 2024-03-14
url: "https://github.com/Jutho/KrylovKit.jl"

GitHub Events

Total
  • Create event: 26
  • Commit comment event: 25
  • Issues event: 18
  • Release event: 9
  • Watch event: 90
  • Delete event: 19
  • Issue comment event: 163
  • Push event: 105
  • Pull request review comment event: 214
  • Pull request review event: 184
  • Pull request event: 43
  • Fork event: 11
Last Year
  • Create event: 26
  • Commit comment event: 25
  • Issues event: 18
  • Release event: 9
  • Watch event: 90
  • Delete event: 19
  • Issue comment event: 163
  • Push event: 105
  • Pull request review comment event: 214
  • Pull request review event: 184
  • Pull request event: 43
  • Fork event: 11

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 238
  • Total Committers: 17
  • Avg Commits per committer: 14.0
  • Development Distribution Score (DDS): 0.113
Past Year
  • Commits: 26
  • Committers: 4
  • Avg Commits per committer: 6.5
  • Development Distribution Score (DDS): 0.269
Top Committers
Name Email Commits
Jutho Haegeman j****n@u****e 211
Lukas 3****s 9
Miles m****e@g****m 3
Mathieu Besançon m****n@g****m 2
Alberto Mercurio 6****o 1
Christopher Rackauckas a****s@c****m 1
Dominique d****n@g****m 1
Haakon Ludvig Langeland Ervik 4****e 1
Julia TagBot 5****t 1
Kyungmin Lee k****2@g****m 1
Markus Hauru m****s@m****g 1
Mingru Yang m****y@u****u 1
Romain Veltz r****z@i****r 1
Victor Vanthilt 7****t 1
XingyuZhang 3****8 1
ho-oto n****u@g****m 1
maartenvd m****4@g****m 1
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • julia 2,048 total
  • Total dependent packages: 31
  • Total dependent repositories: 0
  • Total versions: 34
juliahub.com: KrylovKit

Krylov methods for linear problems, eigenvalues, singular values and matrix functions

  • Versions: 34
  • Dependent Packages: 31
  • Dependent Repositories: 0
  • Downloads: 2,048 Total
Rankings
Dependent packages count: 3.1%
Stargazers count: 3.8%
Average: 5.7%
Forks count: 5.8%
Dependent repos count: 9.9%
Last synced: 6 months ago

Dependencies

.github/workflows/TagBot.yml actions
  • JuliaRegistries/TagBot v1 composite
.github/workflows/ci-julia-nightly.yml actions
  • actions/checkout v2 composite
  • codecov/codecov-action v1 composite
  • julia-actions/julia-buildpkg latest composite
  • julia-actions/julia-processcoverage v1 composite
  • julia-actions/julia-runtest latest composite
  • julia-actions/setup-julia v1 composite
.github/workflows/ci-multithreaded.yml actions
  • actions/checkout v2 composite
  • codecov/codecov-action v1 composite
  • julia-actions/julia-buildpkg latest composite
  • julia-actions/julia-processcoverage v1 composite
  • julia-actions/julia-runtest latest composite
  • julia-actions/setup-julia v1 composite
.github/workflows/ci.yml actions
  • actions/checkout v2 composite
  • codecov/codecov-action v1 composite
  • julia-actions/julia-buildpkg latest composite
  • julia-actions/julia-processcoverage v1 composite
  • julia-actions/julia-runtest latest composite
  • julia-actions/setup-julia v1 composite
.github/workflows/docs.yml actions
  • actions/checkout v2 composite
  • julia-actions/setup-julia latest composite