Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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)