Skip to content

Instantly share code, notes, and snippets.

@nariaki3551
Created July 23, 2021 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nariaki3551/acddd4639fa598e48e0dbdb25f9e1c5b to your computer and use it in GitHub Desktop.
Save nariaki3551/acddd4639fa598e48e0dbdb25f9e1c5b to your computer and use it in GitHub Desktop.
#include <iostream>
#include <fstream>
#include <NTL/LLL.h>
int main(int argc, char **argv)
{
NTL::Mat<int> B;
std::string basisfile = "tmp.txt";
std::ifstream fin(basisfile);
if( !fin.is_open() )
{
std::cout << "can not open input file: " << basisfile << std::endl;
exit(0);
}
fin >> B;
std::cout << B << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment