Complete recurrence matrix-exponentiation optimization and harden large-branch/update execution paths#103
Merged
Conversation
…te indexing Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/e09efce3-65e4-4b52-b570-1f833e7bbc72 Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
…counter Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/e09efce3-65e4-4b52-b570-1f833e7bbc72 Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/e09efce3-65e4-4b52-b570-1f833e7bbc72 Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
…ecurrence stress tests Agent-Logs-Url: https://github.com/DanexCodr/Coderive/sessions/666ae70e-6c69-416c-adf2-c1a2f0a942da Co-authored-by: DanexCodr <216312766+DanexCodr@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
DanexCodr
April 14, 2026 15:04
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This addresses the remaining third optimization plan (matrix exponentiation) and aligns it with the already landed large-scale conditional/lazy-update improvements. The recurrence fast path now avoids unnecessary matrix materialization while preserving lazy-branching and pending-update semantics at scale.
Matrix exponentiation fast path (recurrence evaluation)
M^kfirst.Files updated
src/main/java/cod/range/formula/LinearRecurrenceFormula.javasrc/main/java/cod/range/formula/VectorRecurrenceFormula.javaRecurrence stress coverage expansion
Files updated
src/main/cod/demo/src/main/test/linearrecurrenceoptimization/LinearRecurrenceOptimization.codsrc/main/cod/demo/src/main/test/linearrecurrenceoptimization/VectorLinearRecurrenceOptimization.cod