AngryMaciek / hypercomplex

Abstract & fast header-only C++ template library for lattice-based cryptosystems in high-dimensional algebras
https://angrymaciek.github.io/hypercomplex/
Apache License 2.0
2 stars 1 forks source link

Support for const objects -> Code optimization #9

Closed AngryMaciek closed 3 years ago

AngryMaciek commented 4 years ago

Is your feature request related to a problem? Please describe. How should I implement the methods to work on both const and non-const objects?

Describe the solution you'd like Avoid code duplication!

Additional context

AngryMaciek commented 4 years ago

The use of const keyword is a little messy throughout the library --- needs cleaning.

AngryMaciek commented 4 years ago

Also here: which class members should return by value and which by reference?

AngryMaciek commented 3 years ago

I askked for clarification @ SO: https://stackoverflow.com/questions/64741595/use-of-const-keyword-and-by-reference-return-in-a-c-class

AngryMaciek commented 3 years ago

TODO:

Compare to: https://www.boost.org/doc/libs/1_34_1/doc/html/boost_math/octonions.html

AngryMaciek commented 3 years ago

finished with 7d30765