Skip to content

fix: remove unused sum[4] in LinearRegression#94

Merged
montanaflynn merged 1 commit intomontanaflynn:masterfrom
zhengshui:fix/remove-unused-sum4
Mar 20, 2026
Merged

fix: remove unused sum[4] in LinearRegression#94
montanaflynn merged 1 commit intomontanaflynn:masterfrom
zhengshui:fix/remove-unused-sum4

Conversation

@zhengshui
Copy link
Copy Markdown
Contributor

The sum[4] variable was being calculated but never used in the LinearRegression function. This removes the unnecessary computation and changes the sum array size from [5] to [4].

Fixes #85

The sum[4] variable was being calculated but never used in the
LinearRegression function. This removes the unnecessary computation
and changes the sum array size from [5] to [4].

Fixes montanaflynn#85
@montanaflynn montanaflynn merged commit a1c4bfa into montanaflynn:master Mar 20, 2026
1 check passed
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.

unneeded value in linear regression calculation

2 participants