Skip to content

Fix matrix dimensions in gradient rules for x^T A#2721

Open
Chessing234 wants to merge 1 commit into
d2l-ai:masterfrom
Chessing234:fix/calculus-gradient-matrix-dimensions-2632
Open

Fix matrix dimensions in gradient rules for x^T A#2721
Chessing234 wants to merge 1 commit into
d2l-ai:masterfrom
Chessing234:fix/calculus-gradient-matrix-dimensions-2632

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Split the combined gradient rule for A x and x^T A into two cases with correct matrix dimensions
  • The gradient of x^T A requires A \in R^{n \times m}, not the same m \times n shape as for A x

Issues addressed

Fixes #2632

Test plan

  • Verify rendered math in section 2.4.3 matches standard Jacobian conventions
  • Confirm no build regressions in the markdown source

Made with Cursor

The gradient of x^T A requires A in R^{n x m}, not the same m x n
shape as for A x. Split the combined rule into two cases with correct
dimensions.

Fixes d2l-ai#2632

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Equation error in calculus.md

1 participant