You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a follow-up (patch?) to #47, we remove the Markdown-style [^ABC] references from the docstrings and keep the '@cite' formatting of Documenter. However, we maintain the separate 'References' sections at the bottom of each docstring that actually provide the full citations (in bullet points) for immediate readability in the REPL and in the source code.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
8
8
9
9
### Added
10
10
11
-
- Added Markdown-style references (e.g., [^ABC]: ...) to docstrings for immediate readability in the REPL and in the source code without needing to open the Documenter-generated website (#47).
11
+
- Added **References** sections to docstrings for immediate readability in the REPL and in the source code without needing to open the Documenter-generated website (#47, #48).
[TODO: Write here. Also, comment inline and cite [JP25](@cite).]
11
+
[TODO: Write here. Also, comment inline and cite [JP25].]
12
12
13
13
# References
14
14
15
-
[^JP25]: N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025). https://doi.org/10.1016/j.laa.2024.10.016.
15
+
- [JP25](@cite): N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable
16
+
graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025).
[TODO: Write here. Also, comment inline and cite [JP25](@cite).]
84
+
[TODO: Write here. Also, comment inline and cite [JP25].]
83
85
84
86
# References
85
87
86
-
[^JP25]: N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025). https://doi.org/10.1016/j.laa.2024.10.016.
88
+
- [JP25](@cite): N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable
89
+
graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025).
Copy file name to clipboardExpand all lines: src/factories/orthogonality_factory.jl
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ Recall that an (ordered) collection of vectors ``v₁, v₂, ..., vₙ`` is said
14
14
(i.e., if every pair of vectors at least ``k`` indices apart is orthogonal). This is
15
15
equivalent to the vectors' Gram matrix having bandwidth at most `k`, where we define the
16
16
bandwidth of a matrix ``A`` to be the minimum integer ``k ∈ \\{1, 2, …, n\\}`` such that
17
-
``Aᵢⱼ = 0`` whenever ``|i - j| ≥ k`` [JP25; p. 313](@cite). (Note that many texts instead
18
-
define matrix bandwidth using zero-based indexing—that is, with the condition
19
-
``|i - j| > k`` [Maf14; p. 186](@cite).)
17
+
``Aᵢⱼ = 0`` whenever ``|i - j| ≥ k`` [JP25; p. 313]. (Note that many texts instead define
18
+
matrix bandwidth using zero-based indexing—that is, with the condition ``|i - j| > k``
19
+
[Maf14; p. 186].)
20
20
21
21
This type is used as a template for concretely defined properties corresponding to specific
22
22
values of ``k``. In the context of the overarching *S*-bandwidth algorithm, we perform a
@@ -29,9 +29,12 @@ Concrete subtypes of `KOrthogonality` **must** implement the following fields:
29
29
30
30
# References
31
31
32
-
[^JP25]: N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025). https://doi.org/10.1016/j.laa.2024.10.016.
33
-
34
-
[^Maf14]: L. O. Mafteiu-Scai. *The Bandwidths of a Matrix. A Survey of Algorithms*. *Annals of West University of Timisoara - Mathematics and Computer Science* **52**, 183–223 (2014). https://doi.org/10.2478/awutm-2014-0019.
32
+
- [JP25](@cite): N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable
33
+
graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025).
34
+
https://doi.org/10.1016/j.laa.2024.10.016.
35
+
- [Maf14](@cite): L. O. Mafteiu-Scai. *The Bandwidths of a Matrix. A Survey of Algorithms*.
36
+
*Annals of West University of Timisoara - Mathematics and Computer Science* **52**,
@@ -67,7 +70,7 @@ The property of quasi-orthogonality for a collection of vectors.
67
70
Recall that an (ordered) collection of vectors ``v₁, v₂, ..., vₙ`` is said to be
68
71
*quasi-orthogonal* if we have the inner product ``⟨vᵢ, vⱼ⟩ = 0`` whenever ``|i - j| ≥ 2``
69
72
(i.e., if every pair of vectors at least ``2`` indices apart is orthogonal). This is
70
-
equivalent to the vectors' Gram matrix being tridiagonal [JP25; p. 313](@cite).
73
+
equivalent to the vectors' Gram matrix being tridiagonal [JP25; p. 313].
71
74
72
75
# Fields
73
76
- `k::Int`: the ``k``-orthogonality parameter; always necessarily ``2``.
@@ -80,7 +83,9 @@ equivalent to the vectors' Gram matrix being tridiagonal [JP25; p. 313](@cite).
80
83
81
84
# References
82
85
83
-
[^JP25]: N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025). https://doi.org/10.1016/j.laa.2024.10.016.
86
+
- [JP25](@cite): N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable
87
+
graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025).
Copy file name to clipboardExpand all lines: src/laplacian_s_spectra.jl
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ constructed as well.
46
46
47
47
# Examples
48
48
Confirm that the rotation matrix by ``π/2`` radians counterclockwise is not spectrum
49
-
integral (rather, it has eigenvalues ``±i`` [Joy15; p. 1](@cite)):
49
+
integral (rather, it has eigenvalues ``±i`` [Joy15; p. 1]):
50
50
```jldoctest
51
51
julia> R = Int8.([0 -1; 1 0])
52
52
2×2 Matrix{Int8}:
@@ -68,7 +68,7 @@ true
68
68
```
69
69
70
70
Confirm that the adjacency matrix of the Petersen graph is spectrum integral, with correct
71
-
eigenvalues and multiplicities of ``\\{3: 1, -2: 4, 1: 5\\}`` [Fox09; p. 2](@cite):
71
+
eigenvalues and multiplicities of ``\\{3: 1, -2: 4, 1: 5\\}`` [Fox09; p. 2]:
72
72
```jldoctest
73
73
julia> using Graphs
74
74
@@ -116,16 +116,19 @@ OrderedCollections.OrderedDict{Int64, Int64} with 3 entries:
116
116
# Notes
117
117
If an undirected graph with integer edge weights is ``\\{-1, 0, 1\\}``-diagonalizable (or,
118
118
more restrictively, ``\\{-1, 1\\}``-diagonalizable), then its Laplacian matrix has integer
119
-
eigenvalues [JP25; p. 312](@cite). Hence, validating Laplacian integrality serves as a
120
-
useful screening step in this package's principal *S*-bandwidth minimization algorithm.
119
+
eigenvalues [JP25; p. 312]. Hence, validating Laplacian integrality serves as a useful
120
+
screening step in this package's principal *S*-bandwidth minimization algorithm.
121
121
122
122
# References
123
123
124
-
[^Fox09]: J. Fox. *Lecture 19: The Petersen graph and Moore graphs*. Lecture notes, MAT 307: Combinatorics (2009). Accessed: 2025-07-25. https://math.mit.edu/~fox/MAT307.html.
125
-
126
-
[^Joy15]: D. Joyce. *Rotations and complex eigenvalues*. Lecture notes, Math 130: Linear Algebra (2015). http://aleph0.clarku.edu/~ma130/complexeigen.pdf.
127
-
128
-
[^JP25]: N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025). https://doi.org/10.1016/j.laa.2024.10.016.
124
+
- [Fox09](@cite): J. Fox. *Lecture 19: The Petersen graph and Moore graphs*. Lecture notes,
125
+
MAT 307: Combinatorics (2009). Accessed: 2025-07-25.
126
+
https://math.mit.edu/~fox/MAT307.html.
127
+
- [Joy15](@cite): D. Joyce. *Rotations and complex eigenvalues*. Lecture notes, Math 130:
128
+
Linear Algebra (2015). http://aleph0.clarku.edu/~ma130/complexeigen.pdf.
129
+
- [JP25](@cite): N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable
130
+
graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025).
Copy file name to clipboardExpand all lines: src/types.jl
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -173,12 +173,14 @@ eigenvalues are indeed all integers. (Otherwise, the associated field is simply
173
173
# Notes
174
174
If an undirected graph with integer edge weights is ``\\{-1, 0, 1\\}``-diagonalizable (or,
175
175
more restrictively, ``\\{-1, 1\\}``-diagonalizable), then its Laplacian matrix has integer
176
-
eigenvalues [JP25; p. 312](@cite). Hence, validating Laplacian integrality serves as a
177
-
useful screening step in this package's principal *S*-bandwidth minimization algorithm.
176
+
eigenvalues [JP25; p. 312]. Hence, validating Laplacian integrality serves as a useful
177
+
screening step in this package's principal *S*-bandwidth minimization algorithm.
178
178
179
179
# References
180
180
181
-
[^JP25]: N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025). https://doi.org/10.1016/j.laa.2024.10.016.
181
+
- [JP25](@cite): N. Johnston and S. Plosker. *Laplacian {−1,0,1}- and {−1,1}-diagonalizable
182
+
graphs*. *Linear Algebra and its Applications* **704**, 309–39 (2025).
Copy file name to clipboardExpand all lines: src/utils.jl
+28-16Lines changed: 28 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ an SVD), while the pivots are used to extract a spanning set of independent colu
39
39
40
40
The rank-revealing Businger–Golub QR algorithm is used for the pivoting strategy, appending
41
41
the "most independent" column with respect to the current set of pivots at each step via
42
-
Householder transformations [BG65; pp. 269--70](@cite).
42
+
Householder transformations [BG65; pp. 269--70].
43
43
44
44
# Arguments
45
45
- `A::AbstractMatrix{T<:Integer}`: the matrix whose independent columns to extract.
@@ -87,13 +87,18 @@ tall-and-skinny and short-and-fat matrices (precisely the type we expect to enco
87
87
dealing with all ``\\{-1, 0, 1\\}``-eigenvectors of a Laplacian matrix, which is the
88
88
intended use case of this helper function in this package). Our replacement tolerance, on
89
89
the other hand, is a widely accepted standard in numerical analysis which uses the maximum
90
-
dimension instead [PTVF07; p. 795](@cite).
90
+
dimension instead [PTVF07; p. 795].
91
91
92
92
# References
93
93
94
-
[^BG65]: P. Businger and G. H. Golub. *Linear Least Squares Solutions by Householder Transformations*. *Numerische Mathematik* **7**, 269–76 (1965). https://doi.org/10.1007/BF01436084.
94
+
- [BG65](@cite): P. Businger and G. H. Golub. *Linear Least Squares Solutions by Householder
[^PTVF07]: W. H. Press, S. A. Teukolsky, W. T. Vetterling and B. P. Flannery. *Numerical Recipes: The Art of Scientific Computing*. 3rd Edition (Cambridge University Press, Cambridge, UK, 2007). ISBN: 978-0-521-88068-8. https://dl.acm.org/doi/10.5555/1403886.
98
+
- [PTVF07](@cite): W. H. Press, S. A. Teukolsky, W. T. Vetterling and B. P. Flannery.
99
+
*Numerical Recipes: The Art of Scientific Computing*. 3rd Edition (Cambridge University
@@ -162,7 +167,7 @@ Matrix has nonzero row sums; cannot be an (undirected) Laplacian
162
167
163
168
Both the in-degree and out-degree Laplacian matrices of this random tournament digraph have
164
169
zero row sums but are not symmetric, so they fail the check. (These are the two standard
165
-
ways of extending the concept of the Laplacian to directed graphs [VL20; p. 196](@cite).)
170
+
ways of extending the concept of the Laplacian to directed graphs [VL20; p. 196].)
166
171
```jldoctest
167
172
julia> using Graphs
168
173
@@ -213,7 +218,9 @@ publicly exposed on its own.
213
218
214
219
# References
215
220
216
-
[^VL20]: J. J. Veerman and R. Lyons. *A Primer on Laplacian Dynamics in Directed Graphs*. *Nonlinear Phenomena in Complex Systems* **23**, 196–206 (2020). https://doi.org/10.33581/1561-4085-2020-23-2-196-206.
221
+
- [VL20](@cite): J. J. Veerman and R. Lyons. *A Primer on Laplacian Dynamics in Directed
222
+
Graphs*. *Nonlinear Phenomena in Complex Systems* **23**, 196–206 (2020).
@@ -276,21 +283,26 @@ type of `A` when `eltype(A)` is not an `AbstractFloat`.
276
283
`LinearAlgebra.rank`'s default `rtol` of `min(m,n) * ϵ` for computing the rank of an
277
284
``m×n`` matrix may result in overestimating rank when ``|m - n| ≫ 0``, since condition
278
285
number (which determines how numerically stable SVD and QRD are) grows with both dimensions
279
-
[CD05; p. 603](@cite). Given that we often deal with short-and-fat matrices in this package
286
+
[CD05; p. 603]. Given that we often deal with short-and-fat matrices in this package
280
287
(particularly when processing all ``\\{-1, 0, 1\\}``-eigenvectors of a Laplacian matrix), we
281
288
turn instead to the same relative tolerance used by NumPy's and MATLAB's rank
282
-
functions—`max(m,n) * ϵ` [Num25, MAT25](@cite). (Indeed, this is a widely adopted standard
283
-
across the field of numerical analysis [PTVF07; p. 795](@cite).)
289
+
functions—`max(m,n) * ϵ` [Num25, MAT25]. (Indeed, this is a widely adopted standard across
290
+
the field of numerical analysis [PTVF07; p. 795].)
284
291
285
292
# References
286
293
287
-
[^CD05]: Z. Chen and J. Dongarra. *Condition Numbers of Gaussian Random Matrices*. *SIAM Journal on Matrix Analysis and Applications* **27**, 603–20 (2005). https://doi.org/10.1137/040616413.
[^PTVF07]: W. H. Press, S. A. Teukolsky, W. T. Vetterling and B. P. Flannery. *Numerical Recipes: The Art of Scientific Computing*. 3rd Edition (Cambridge University Press, Cambridge, UK, 2007). ISBN: 978-0-521-88068-8. https://dl.acm.org/doi/10.5555/1403886.
294
+
- [CD05](@cite): Z. Chen and J. Dongarra. *Condition Numbers of Gaussian Random Matrices*.
295
+
*SIAM Journal on Matrix Analysis and Applications* **27**, 603–20 (2005).
0 commit comments