Ask Your Question

Podias_k's profile - activity

2022-01-27 11:03:48 +0200 received badge  Notable Question (source)
2018-07-08 15:38:35 +0200 received badge  Popular Question (source)
2017-10-24 11:53:12 +0200 received badge  Taxonomist
2011-02-07 08:27:07 +0200 received badge  Good Question (source)
2011-02-05 14:06:44 +0200 received badge  Nice Question (source)
2011-02-05 14:02:51 +0200 received badge  Student (source)
2011-02-05 13:34:11 +0200 asked a question Including a sage library in c code

I have a .c file implementing some calculations on lattice basis. I use NTL, GMP and MPFR for my data types and functios. I'd like to use as input for my calculations some basis matrices generated by sage.crypto.lattice.gen_lattice.

  1. Is it possible for me to include "something" so I can call this function in my code and get the matrices?

  2. Is there any other way to export this matrices and import them to my c code? (I need to do these calculations for at least 100 different basis of 200,250,500 size so the process must be as "automated" as possible)