Skip to content

copyArrayInterpolated#44

Merged
rusefillc merged 1 commit intorusefi:masterfrom
FDSoftware:8931
Jan 7, 2026
Merged

copyArrayInterpolated#44
rusefillc merged 1 commit intorusefi:masterfrom
FDSoftware:8931

Conversation

@FDSoftware
Copy link
Member

I hope this is a better approach to "putting an array of X size to a one of Y size" problem of #8931

template using with another rounding different from 2 digits should be a bit painful

copyArrayInterpolated<float, float, 4, 2, 1>(dest, src);

But by using the argument in the template I can use/abuse of constexpr if's
https://en.cppreference.com/w/cpp/language/if.html#Constexpr_if

@rusefillc rusefillc merged commit 27ad3f1 into rusefi:master Jan 7, 2026
3 checks 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.

2 participants