22 Commits

Author SHA1 Message Date
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
9abfb274bf Update utils/structs/matrix.go
Co-authored-by: Boris Flesch <13056415+borisflesch@users.noreply.github.com>
2023-10-30 15:05:26 +01:00
Jean-Philippe Bossuat
450cd1880e Update utils/structs/matrix.go
Co-authored-by: Boris Flesch <13056415+borisflesch@users.noreply.github.com>
2023-10-30 15:04:04 +01:00
Romain Bouyé
8868658f69 Typo fixes on v5 pass 2023-10-13 00:14:52 +02:00
Jean-Philippe Bossuat
69f0d511f2 staticcheck 2023-10-05 14:05:40 +02:00
Jean-Philippe Bossuat
fd243a2566 [utils/buffer]: added equality checks
[ring.Poly]: removed .Buff (not needed anymore)
2023-10-05 14:03:17 +02:00
Jean-Philippe Bossuat
0f9e100596 [utils/structs]: expanded support for floats and integers. 2023-10-05 11:22:36 +02:00
Jean-Philippe Bossuat
c631457984 [utils/structs]: fixed error messages 2023-10-05 09:18:08 +02:00
Jean-Philippe Bossuat
4bb5cdbee8 [utils/buffer]: added generics 2023-10-04 10:36:15 +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
Jean-Philippe Bossuat
2195042e60 [ex. params][private test params][fix to deep equal][bfv benchmarks] 2023-06-17 01:08:06 +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
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