-
Notifications
You must be signed in to change notification settings - Fork 3
Fix equation rendering #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||||||||||
| [](https://docs.python.org/3/) | ||||||||||||||
| [](https://python.org/downloads) | ||||||||||||||
| [](https://github.com/theochem/matrix-permanent/actions/workflows/pull_request.yml) | ||||||||||||||
| [](https://www.gnu.org/licenses/gpl-3.0.en.html) | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -37,9 +37,10 @@ Compute the permanent of a matrix using the best algorithm for the shape of the | |||||||||||||
| Compute the permanent of a matrix combinatorically. | ||||||||||||||
|
|
||||||||||||||
| **Formula:** | ||||||||||||||
| ```math | ||||||||||||||
|
|
||||||||||||||
| $$ | ||||||||||||||
| \text{per}(A) = \sum_{\sigma \in P(N,M)}{\prod_{i=1}^M{a_{i,{\sigma(i)}}}} | ||||||||||||||
| ``` | ||||||||||||||
| $$ | ||||||||||||||
|
|
||||||||||||||
| **Parameters:** | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -55,29 +56,31 @@ Compute the permanent of a matrix combinatorically. | |||||||||||||
|
|
||||||||||||||
| **Formula:** | ||||||||||||||
|
|
||||||||||||||
| ```math | ||||||||||||||
| $$ | ||||||||||||||
| \text{per}(A) = \frac{1}{2^{N-1}} \cdot \sum_{\delta \in \left[\delta_1 = 1,~ \delta_2 \dots \delta_N=\pm1\right]}{ | ||||||||||||||
| \left(\sum_{k=1}^N{\delta_k}\right){\prod_{j=1}^N{\sum_{i=1}^N{\delta_i a_{i,j}}}}} | ||||||||||||||
|
Comment on lines
60
to
61
|
||||||||||||||
| \text{per}(A) = \frac{1}{2^{N-1}} \cdot \sum_{\delta \in \left[\delta_1 = 1,~ \delta_2 \dots \delta_N=\pm1\right]}{ | |
| \left(\sum_{k=1}^N{\delta_k}\right){\prod_{j=1}^N{\sum_{i=1}^N{\delta_i a_{i,j}}}}} | |
| \begin{aligned} | |
| \text{per}(A) &= \frac{1}{2^{N-1}} \cdot \sum_{\delta \in \left[\delta_1 = 1,~ \delta_2 \dots \delta_N=\pm1\right]}{ \\ | |
| &\quad \left(\sum_{k=1}^N{\delta_k}\right){\prod_{j=1}^N{\sum_{i=1}^N{\delta_i a_{i,j}}}}} | |
| \end{aligned} |
Copilot
AI
Apr 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matrix identity is extremely wide; with $$ ... $$ and no explicit line breaks it will likely overflow horizontally in GitHub’s renderer. Consider splitting it across multiple lines using aligned/multline (and \\) so it remains readable on narrow screens.
Copilot
AI
Apr 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This multi-line formula will render as a single line under KaTeX unless you add an aligned/multline environment and explicit \\ breaks. As-is, it’s likely to overflow horizontally and be hard to read on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Shields.io badge URL includes a literal "+" in the path ("3.10+"). Shields generally expects special characters to be URL-encoded; otherwise the badge can fail to render in some contexts. Consider encoding it as "%2B" ("3.10%2B") to make the badge URL robust.