Skip to content

Commit 275c74e

Browse files
author
Documenter.jl
committed
build based on 4a32eb6
1 parent ce2251d commit 275c74e

File tree

6 files changed

+119
-119
lines changed

6 files changed

+119
-119
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.12.4","generation_timestamp":"2026-01-21T06:16:32","documenter_version":"1.16.1"}}
1+
{"documenter":{"julia_version":"1.12.4","generation_timestamp":"2026-01-21T06:16:43","documenter_version":"1.16.1"}}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Developer Interface · MatrixAlgebraKit.jl</title><meta name="title" content="Developer Interface · MatrixAlgebraKit.jl"/><meta property="og:title" content="Developer Interface · MatrixAlgebraKit.jl"/><meta property="twitter:title" content="Developer Interface · MatrixAlgebraKit.jl"/><meta name="description" content="Documentation for MatrixAlgebraKit.jl."/><meta property="og:description" content="Documentation for MatrixAlgebraKit.jl."/><meta property="twitter:description" content="Documentation for MatrixAlgebraKit.jl."/><script data-outdated-warner src="../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../search_index.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-mocha.css" data-theme-name="catppuccin-mocha"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-macchiato.css" data-theme-name="catppuccin-macchiato"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-frappe.css" data-theme-name="catppuccin-frappe"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/catppuccin-latte.css" data-theme-name="catppuccin-latte"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../">MatrixAlgebraKit.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li><a class="tocitem" href="../">Home</a></li><li><span class="tocitem">User Interface</span><ul><li><a class="tocitem" href="../user_interface/compositions/">Compositions</a></li><li><a class="tocitem" href="../user_interface/decompositions/">Decompositions</a></li><li><a class="tocitem" href="../user_interface/truncations/">Truncations</a></li><li><a class="tocitem" href="../user_interface/properties/">Matrix Properties</a></li><li><a class="tocitem" href="../user_interface/matrix_functions/">Matrix functions</a></li></ul></li><li class="is-active"><a class="tocitem" href>Developer Interface</a></li><li><a class="tocitem" href="../library/">Library</a></li><li><a class="tocitem" href="../changelog/">Changelog</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Developer Interface</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Developer Interface</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/main/docs/src/dev_interface.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="Developer-Interface"><a class="docs-heading-anchor" href="#Developer-Interface">Developer Interface</a><a id="Developer-Interface-1"></a><a class="docs-heading-anchor-permalink" href="#Developer-Interface" title="Permalink"></a></h1><p>MatrixAlgebraKit.jl provides a developer interface for specifying custom algorithm backends and selecting default algorithms.</p><article><details class="docstring"><summary id="MatrixAlgebraKit.default_algorithm-dev_interface"><a class="docstring-binding" href="#MatrixAlgebraKit.default_algorithm-dev_interface"><code>MatrixAlgebraKit.default_algorithm</code></a><span class="docstring-category">Function</span></summary><section><div><pre><code class="language-julia hljs">MatrixAlgebraKit.default_algorithm(f, A; kwargs...)
3-
MatrixAlgebraKit.default_algorithm(f, ::Type{TA}; kwargs...) where {TA}</code></pre><p>Select the default algorithm for a given factorization function <code>f</code> and input <code>A</code>. In general, this is called by <a href="../library/#MatrixAlgebraKit.select_algorithm"><code>select_algorithm</code></a> if no algorithm is specified explicitly. New types should prefer to register their default algorithms in the type domain.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4863bc9b1bbdef48c0544767bf0cee8c3cfb3f98/src/algorithms.jl#L111-L119">source</a></section></details></article><article><details class="docstring"><summary id="MatrixAlgebraKit.select_algorithm-dev_interface"><a class="docstring-binding" href="#MatrixAlgebraKit.select_algorithm-dev_interface"><code>MatrixAlgebraKit.select_algorithm</code></a><span class="docstring-category">Function</span></summary><section><div><pre><code class="language-julia hljs">MatrixAlgebraKit.select_algorithm(f, A, alg::AbstractAlgorithm)
3+
MatrixAlgebraKit.default_algorithm(f, ::Type{TA}; kwargs...) where {TA}</code></pre><p>Select the default algorithm for a given factorization function <code>f</code> and input <code>A</code>. In general, this is called by <a href="../library/#MatrixAlgebraKit.select_algorithm"><code>select_algorithm</code></a> if no algorithm is specified explicitly. New types should prefer to register their default algorithms in the type domain.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4a32eb64ce9f58039b61ed3462f2bc542ac28d42/src/algorithms.jl#L111-L119">source</a></section></details></article><article><details class="docstring"><summary id="MatrixAlgebraKit.select_algorithm-dev_interface"><a class="docstring-binding" href="#MatrixAlgebraKit.select_algorithm-dev_interface"><code>MatrixAlgebraKit.select_algorithm</code></a><span class="docstring-category">Function</span></summary><section><div><pre><code class="language-julia hljs">MatrixAlgebraKit.select_algorithm(f, A, alg::AbstractAlgorithm)
44
MatrixAlgebraKit.select_algorithm(f, A, alg::Symbol; kwargs...)
55
MatrixAlgebraKit.select_algorithm(f, A, alg::Type; kwargs...)
66
MatrixAlgebraKit.select_algorithm(f, A; kwargs...)
7-
MatrixAlgebraKit.select_algorithm(f, A, (; kwargs...))</code></pre><p>Decide on an algorithm to use for implementing the function <code>f</code> on inputs of type <code>A</code>. This can be obtained both for values <code>A</code> or types <code>A</code>.</p><p>If <code>alg</code> is an <code>AbstractAlgorithm</code> instance, it will be returned as-is.</p><p>If <code>alg</code> is a <code>Symbol</code> or a <code>Type</code> of algorithm, the return value is obtained by calling the corresponding algorithm constructor; keyword arguments in <code>kwargs</code> are passed along to this constructor.</p><p>If <code>alg</code> is not specified (or <code>nothing</code>), an algorithm will be selected automatically with <a href="../library/#MatrixAlgebraKit.default_algorithm"><code>MatrixAlgebraKit.default_algorithm</code></a> and the keyword arguments in <code>kwargs</code> will be passed to the algorithm constructor. Finally, the same behavior is obtained when the keyword arguments are passed as the third positional argument in the form of a <code>NamedTuple</code>. </p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4863bc9b1bbdef48c0544767bf0cee8c3cfb3f98/src/algorithms.jl#L68-L89">source</a></section></details></article><article><details class="docstring"><summary id="MatrixAlgebraKit.findtruncated-dev_interface"><a class="docstring-binding" href="#MatrixAlgebraKit.findtruncated-dev_interface"><code>MatrixAlgebraKit.findtruncated</code></a><span class="docstring-category">Function</span></summary><section><div><pre><code class="language-julia hljs">MatrixAlgebraKit.findtruncated(values::AbstractVector, strategy::TruncationStrategy)</code></pre><p>Generic interface for finding truncated values of the spectrum of a decomposition based on the <code>strategy</code>. The output should be a collection of indices specifying which values to keep. <code>MatrixAlgebraKit.findtruncated</code> is used inside of the default implementation of <a href="../library/#MatrixAlgebraKit.truncate"><code>truncate</code></a> to perform the truncation. It does not assume that the values are sorted. For a version that assumes the values are reverse sorted (which is the standard case for SVD) see <a href="../library/#MatrixAlgebraKit.findtruncated_svd"><code>MatrixAlgebraKit.findtruncated_svd</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4863bc9b1bbdef48c0544767bf0cee8c3cfb3f98/src/algorithms.jl#L193-L202">source</a></section></details></article><article><details class="docstring"><summary id="MatrixAlgebraKit.findtruncated_svd-dev_interface"><a class="docstring-binding" href="#MatrixAlgebraKit.findtruncated_svd-dev_interface"><code>MatrixAlgebraKit.findtruncated_svd</code></a><span class="docstring-category">Function</span></summary><section><div><pre><code class="language-julia hljs">MatrixAlgebraKit.findtruncated_svd(values::AbstractVector, strategy::TruncationStrategy)</code></pre><p>Like <a href="../library/#MatrixAlgebraKit.findtruncated"><code>MatrixAlgebraKit.findtruncated</code></a> but assumes that the values are real and sorted in descending order, as typically obtained by the SVD. This assumption is not checked, and this is used in the default implementation of <a href="../library/#MatrixAlgebraKit.svd_trunc!"><code>svd_trunc!</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4863bc9b1bbdef48c0544767bf0cee8c3cfb3f98/src/algorithms.jl#L204-L210">source</a></section></details></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../user_interface/matrix_functions/">« Matrix functions</a><a class="docs-footer-nextpage" href="../library/">Library »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.16.1 on <span class="colophon-date" title="Wednesday 21 January 2026 06:16">Wednesday 21 January 2026</span>. Using Julia version 1.12.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body><div data-docstringscollapsed="true"></div></html>
7+
MatrixAlgebraKit.select_algorithm(f, A, (; kwargs...))</code></pre><p>Decide on an algorithm to use for implementing the function <code>f</code> on inputs of type <code>A</code>. This can be obtained both for values <code>A</code> or types <code>A</code>.</p><p>If <code>alg</code> is an <code>AbstractAlgorithm</code> instance, it will be returned as-is.</p><p>If <code>alg</code> is a <code>Symbol</code> or a <code>Type</code> of algorithm, the return value is obtained by calling the corresponding algorithm constructor; keyword arguments in <code>kwargs</code> are passed along to this constructor.</p><p>If <code>alg</code> is not specified (or <code>nothing</code>), an algorithm will be selected automatically with <a href="../library/#MatrixAlgebraKit.default_algorithm"><code>MatrixAlgebraKit.default_algorithm</code></a> and the keyword arguments in <code>kwargs</code> will be passed to the algorithm constructor. Finally, the same behavior is obtained when the keyword arguments are passed as the third positional argument in the form of a <code>NamedTuple</code>. </p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4a32eb64ce9f58039b61ed3462f2bc542ac28d42/src/algorithms.jl#L68-L89">source</a></section></details></article><article><details class="docstring"><summary id="MatrixAlgebraKit.findtruncated-dev_interface"><a class="docstring-binding" href="#MatrixAlgebraKit.findtruncated-dev_interface"><code>MatrixAlgebraKit.findtruncated</code></a><span class="docstring-category">Function</span></summary><section><div><pre><code class="language-julia hljs">MatrixAlgebraKit.findtruncated(values::AbstractVector, strategy::TruncationStrategy)</code></pre><p>Generic interface for finding truncated values of the spectrum of a decomposition based on the <code>strategy</code>. The output should be a collection of indices specifying which values to keep. <code>MatrixAlgebraKit.findtruncated</code> is used inside of the default implementation of <a href="../library/#MatrixAlgebraKit.truncate"><code>truncate</code></a> to perform the truncation. It does not assume that the values are sorted. For a version that assumes the values are reverse sorted (which is the standard case for SVD) see <a href="../library/#MatrixAlgebraKit.findtruncated_svd"><code>MatrixAlgebraKit.findtruncated_svd</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4a32eb64ce9f58039b61ed3462f2bc542ac28d42/src/algorithms.jl#L193-L202">source</a></section></details></article><article><details class="docstring"><summary id="MatrixAlgebraKit.findtruncated_svd-dev_interface"><a class="docstring-binding" href="#MatrixAlgebraKit.findtruncated_svd-dev_interface"><code>MatrixAlgebraKit.findtruncated_svd</code></a><span class="docstring-category">Function</span></summary><section><div><pre><code class="language-julia hljs">MatrixAlgebraKit.findtruncated_svd(values::AbstractVector, strategy::TruncationStrategy)</code></pre><p>Like <a href="../library/#MatrixAlgebraKit.findtruncated"><code>MatrixAlgebraKit.findtruncated</code></a> but assumes that the values are real and sorted in descending order, as typically obtained by the SVD. This assumption is not checked, and this is used in the default implementation of <a href="../library/#MatrixAlgebraKit.svd_trunc!"><code>svd_trunc!</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/QuantumKitHub/MatrixAlgebraKit.jl/blob/4a32eb64ce9f58039b61ed3462f2bc542ac28d42/src/algorithms.jl#L204-L210">source</a></section></details></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../user_interface/matrix_functions/">« Matrix functions</a><a class="docs-footer-nextpage" href="../library/">Library »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.16.1 on <span class="colophon-date" title="Wednesday 21 January 2026 06:16">Wednesday 21 January 2026</span>. Using Julia version 1.12.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body><div data-docstringscollapsed="true"></div></html>

previews/PR86/library/index.html

Lines changed: 84 additions & 84 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)