Commit Graph

7 Commits

Author SHA1 Message Date
Christian Mouchet
28d498ffc7 improved Vector, Matrix and Map types
Vector and Matrix now use []T and [][]T as underlying types, which makes them more versatile and easy to cast to from slices.
Map still uses map[K]V as map values cannot be addressed and this is anoying to use.
I also got rid of the Codec[T] type as it can be replaced with a 3-liner (i.e., equivalent to calling the Codex and checking the error).
There is also a small change of the OperendQ.Encode method that now uses OperandQ.WriteTo instead of OperandQ.Encode (since it is a bit fasterfor some reason...). This is an experiment and more work on the serialization is needed.
2023-06-07 20:18:13 +02:00
Jean-Philippe Bossuat
88488da99e [structs]: fixed EOF for readfrom if struct was empty 2023-05-01 21:10:26 +02:00
Jean-Philippe Bossuat
5951af1c23 staticcheck 2023-04-24 21:36:51 +02:00
Jean-Philippe Bossuat
d5f0f04b68 [all]: updated API for encoding/decoding in place 2023-04-24 18:44:05 +02:00
Jean-Philippe Bossuat
dbb72479f0 [structs]: added generic copynew 2023-04-06 10:40:23 +02:00
Jean-Philippe Bossuat
cc79a939d8 [rlwe]: adapted structs to the utils/structs package 2023-04-05 15:53:14 +02:00
Jean-Philippe Bossuat
179d8cbdc8 [utils]: added structs 2023-04-04 13:40:31 +02:00