Commit Graph

16 Commits

Author SHA1 Message Date
Jean-Philippe Bossuat
cf2e63d73d Applied suggested changes 2025-01-21 09:40:37 +01:00
Jean-Philippe Bossuat
952047663d Cleared all instances of G115 2025-01-21 09:15:17 +01:00
Andrea Caforio
f8b84f5165 Merge pull request #492 from tuneinsight/he-collapse
v6.0.0
2024-08-06 14:46:08 +02:00
Jean-Philippe Bossuat
c031b14be1 updated imports to v5 2023-11-14 19:15:38 +01:00
Jean-Philippe Bossuat
5bc8a934cc Update utils/structs/map.go
Co-authored-by: Boris Flesch <13056415+borisflesch@users.noreply.github.com>
2023-10-30 15:05:54 +01:00
Romain Bouyé
8868658f69 Typo fixes on v5 pass 2023-10-13 00:14:52 +02:00
Jean-Philippe Bossuat
46f97267da generic Operand 2023-07-15 19:27:30 +02:00
Jean-Philippe Bossuat
cf5009b76a [utils/buffer]: all custom methods returns the number of bytes written as int64 2023-07-12 09:42:11 +02:00
Jean-Philippe Bossuat
0c6d0c23a8 staticcheck & gosec 2023-06-27 17:14:41 +02:00
Christian Mouchet
029e9d2c07 removed the Encode and Decode interface 2023-06-12 13:53:16 +02:00
Christian Mouchet
86d081bce2 improved the Writer/Reader-based serialization
The WriterTo and ReaderFrom standard interface should be sufficient for the serialization
of lattigo objects from their pointers. Other interfaces such as BinaryMarshaller should
be based on WriterTo. This is possible in an efficient way if the Writer and Reader interface
expose their internal buffer.
2023-06-12 13:52:43 +02:00
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
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