Skip to content

docs: clarify usolve's upper-triangular input requirement - #3703

Open
Hugohong258 wants to merge 1 commit into
josdejong:developfrom
Hugohong258:docs/usolve-upper-triangular
Open

Hugohong258 wants to merge 1 commit into
josdejong:developfrom
Hugohong258:docs/usolve-upper-triangular

Conversation

@Hugohong258

Copy link
Copy Markdown

usolve assumes its input is upper triangular but does not validate that condition. Passing a non-upper-triangular matrix can return an incorrect result or produce a misleading singular-matrix error. Clarify this limitation in the function JSDoc and embedded help text.

Addresses the documentation part of #2333.

Validation: reproduced the issue against src/defaultInstance.js with a non-singular matrix (determinant ≈ -119.34) that triggers the singular-matrix error; npx mocha test/unit-tests/function/algebra/solver/usolve.test.js (7 passing); targeted ESLint and git diff --check passed. This is documentation only; solver behavior is unchanged.

This branch has not been deployed

No deployments
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.

1 participant