Skip to content

Commit 86f2a30

Browse files
committed
fixing relative file path for hint figures
1 parent 70c2b76 commit 86f2a30

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

Project#01/hints/hint7-1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Here are two approaches for the [diagonalization](http://en.wikipedia.org/wiki/D
44
Since the moment of inertia tensor is only a 3x3 matrix, a brute-force approach via the secular determinant is feasible:
55

66
<picture>
7-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/determinant.png">
8-
<source media="(prefers-color-scheme: light)" srcset="./figures/determinant.png">
7+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/determinant.png">
8+
<source media="(prefers-color-scheme: light)" srcset="../figures/determinant.png">
99
<img src="../figures/determinant.png" height="60">
1010
</picture>
1111

Project#03/hints/hint3-1.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
How do we conveniently store the elements of the four-dimensional two-electron integral array in a one-dimensional array? Consider the lower triangle of an *n x n* symmetric matrix:
33

44
<picture>
5-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/n-by-n-symmetric-matrix.png">
6-
<source media="(prefers-color-scheme: light)" srcset="./figures/n-by-n-symmetric-matrix.png">
5+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/n-by-n-symmetric-matrix.png">
6+
<source media="(prefers-color-scheme: light)" srcset="../figures/n-by-n-symmetric-matrix.png">
77
<img src="../figures/n-by-n-symmetric-matrix.png" height="125">
88
</picture>
99

1010
The total number of elements in the lower triangle is *M = n(n+1)/2*. We could store these in a one-dimensional array by ordering them from top-to-bottom, left-to-right:
1111

1212
<picture>
13-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/lower-triang-numbered-matrix.png">
14-
<source media="(prefers-color-scheme: light)" srcset="./figures/lower-triang-numbered-matrix.png">
13+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/lower-triang-numbered-matrix.png">
14+
<source media="(prefers-color-scheme: light)" srcset="../figures/lower-triang-numbered-matrix.png">
1515
<img src="../figures/lower-triang-numbered-matrix.png" height="125">
1616
</picture>
1717

1818
How do we translate row (*i*) and column (*j*) indices of the matrix to the position in the linear array (*ij*)?
1919

2020
<picture>
21-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/ioff-compound-index.png">
22-
<source media="(prefers-color-scheme: light)" srcset="./figures/ioff-compound-index.png">
21+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/ioff-compound-index.png">
22+
<source media="(prefers-color-scheme: light)" srcset="../figures/ioff-compound-index.png">
2323
<img src="../figures/ioff-compound-index.png" height="70">
2424
</picture>
2525

@@ -41,15 +41,15 @@ Here's an equivalent piece of code that requires fewer keystrokes:
4141
The eight-fold permutational symmetry of the two-electron repulsion integrals can be viewed similarly. The Mulliken-notation integrals are symmetric to permutations of the bra indices or of the ket indices. Hence, we can view the integral list as a symmetric "super-matrix" of the form:
4242

4343
<picture>
44-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/symmetric-integral-matrix.png">
45-
<source media="(prefers-color-scheme: light)" srcset="./figures/symmetric-integral-matrix.png">
44+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/symmetric-integral-matrix.png">
45+
<source media="(prefers-color-scheme: light)" srcset="../figures/symmetric-integral-matrix.png">
4646
<img src="../figures/symmetric-integral-matrix.png" height="125">
4747
</picture>
4848

4949
Thus, just as for the two-dimensional case above, we only need to store the lower triangle of this matrix, and a one-dimensional array of length *M(M+1)/2* will do the trick. Given four AO indices, *i*, *j*, *k*, and *l* corresponding to the integral, (ij|kl), we can translate these into compound row (*ij*) and column (*kl*) indices using the expression above, as well as the final compound index:
5050

5151
<picture>
52-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/ioff-final-compound-index.png">
53-
<source media="(prefers-color-scheme: light)" srcset="./figures/ioff-final-compound-index.png">
52+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/ioff-final-compound-index.png">
53+
<source media="(prefers-color-scheme: light)" srcset="../figures/ioff-final-compound-index.png">
5454
<img src="../figures/ioff-final-compound-index.png" height="70">
5555
</picture>

Project#03/hints/hint3-2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
If you've written your program so that the two-electron integrals are stored in a one-dimensional array, you may have recognized that your program spends quite a bit of its time calculating compound indices. Is there a way to speed up this process? Sure! Pre-compute the indices instead. Look again at the structure of a symmetric matrix, with the elements of the lower triangle numbered top-to-bottom/left-to-right:
22

33
<picture>
4-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/lower-triang-numbered-matrix2.png">
5-
<source media="(prefers-color-scheme: light)" srcset="./figures/lower-triang-numbered-matrix2.png">
4+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/lower-triang-numbered-matrix2.png">
5+
<source media="(prefers-color-scheme: light)" srcset="../figures/lower-triang-numbered-matrix2.png">
66
<img src="../figures/lower-triang-numbered-matrix2.png" height="150">
77
</picture>
88

99
We calculate these above values from the raw row and column indices, *i* and *j*, respectively using:
1010

1111
<picture>
12-
<source media="(prefers-color-scheme: dark)" srcset="./figures/dark/ioff-compound-index2.png">
13-
<source media="(prefers-color-scheme: light)" srcset="./figures/ioff-compound-index2.png">
12+
<source media="(prefers-color-scheme: dark)" srcset="../figures/dark/ioff-compound-index2.png">
13+
<source media="(prefers-color-scheme: light)" srcset="../figures/ioff-compound-index2.png">
1414
<img src="../figures/ioff-compound-index2.png" height="70">
1515
</picture>
1616

0 commit comments

Comments
 (0)