Skip to content

Conversation

@JordanRL
Copy link
Owner

Implement minors and cofactors methods for the Matrix class to complete linear algebra capabilities. This addresses an existing TODO in the codebase and is required for more advanced matrix operations.

JordanRL and others added 7 commits January 17, 2026 13:45
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…entation

The adjugate matrix is the transpose of the cofactor matrix, not just the transpose of the original matrix. Updated getAdjugate() to use cofactors()->getAdjoint() to correctly compute the adjugate.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Added comprehensive tests for the minors() method covering:
- 2x2 matrices
- 3x3 matrices
- 1x1 matrices (edge case)

The tests verify that minors() correctly returns the matrix of minors
for each element, following existing test patterns.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants