atlas  0.6
Classes | Typedefs | Functions | Variables
coef-merge.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <cassert>
#include <vector>
#include <fstream>
#include <stdexcept>
#include <iomanip>
#include <sstream>
Include dependency graph for coef-merge.cpp:

Classes

class  ChineseBox
 
class  PrimeChineseBox
 
class  TabledChineseBox
 
class  PrimeTabledChineseBox
 
class  DoubleTabledChineseBox
 
class  PrimeDoubleTabledChineseBox
 
class  modulus_info
 
class  modulus_info_with_table
 

Typedefs

typedef unsigned long int ulong
 
typedef std::streamoff file_pos
 

Functions

ulong extended_gcd (ulong a, ulong b, ulong &lcm, ulong &m)
 
file_pos read_bytes (ulong n, std::istream &in)
 
void write_bytes (file_pos val, ulong n, std::ostream &out)
 
void read_renumbering_table (ulong nr_pols, std::ifstream &in, std::vector< unsigned int > &table) throw (std::length_error,std::bad_alloc)
 
file_pos write_indices (ulong coefficient_size, const std::vector< modulus_info * > &mod_info, std::ostream &out, bool verbose, bool output)
 
ulong write_coefficients (ulong coefficient_size, const std::vector< modulus_info * > &mod_info, const std::vector< ChineseBox * > &box, std::ostream &out, bool verbose, bool output)
 
void test (std::vector< ulong > &moduli, std::vector< ChineseBox * > &box)
 
int main (int argc, char **argv)
 

Variables

const std::ios_base::openmode binary_out
 
const std::ios_base::openmode binary_in
 

Typedef Documentation

typedef std::streamoff file_pos
typedef unsigned long int ulong

Function Documentation

ulong extended_gcd ( ulong  a,
ulong  b,
ulong lcm,
ulong m 
)
int main ( int  argc,
char **  argv 
)
file_pos read_bytes ( ulong  n,
std::istream &  in 
)
void read_renumbering_table ( ulong  nr_pols,
std::ifstream &  in,
std::vector< unsigned int > &  table 
)
throw (std::length_error,
std::bad_alloc
)
void test ( std::vector< ulong > &  moduli,
std::vector< ChineseBox * > &  box 
)
void write_bytes ( file_pos  val,
ulong  n,
std::ostream &  out 
)
inline
ulong write_coefficients ( ulong  coefficient_size,
const std::vector< modulus_info * > &  mod_info,
const std::vector< ChineseBox * > &  box,
std::ostream &  out,
bool  verbose,
bool  output 
)
file_pos write_indices ( ulong  coefficient_size,
const std::vector< modulus_info * > &  mod_info,
std::ostream &  out,
bool  verbose,
bool  output 
)

Variable Documentation

const std::ios_base::openmode binary_in
Initial value:
=
std::ios_base::in
| std::ios_base::binary
const std::ios_base::openmode binary_out
Initial value:
=
| std::ios_base::trunc
| std::ios_base::binary
#define out(c)
Definition: cweave.c:205