You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the PolynomialVector class is tightly coupled with the Polynomial class in a sense that it can borrow its byte storage (that's what the redundant std::span is for). I.e. also the std::vector in the PolynomialVector should be replaced by secure_vector then.
Actually @reneme isn't this always of known length namely Trait::N? Why not a std::array?
This was done to allow the Polynomial class to borrow its storage from the PolynomialVector, in which case the array would just be wasted stack space. Essentially, instances of polynomials can be free-standing (owning their own storage in the std::vector) or part of a vector of polynomials where the storage is coalesced into a single (appropriately larger) std::vector in the outer PolynomialVector instance. I'm not 100% sure anymore why we added this complexity, frankly. I believe it was faster.
Anyway, the computation is always implemented over the std::span<T, Trait::N> to let the compiler leverage the statically known bounds.
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
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.
No description provided.