#include <iostream>#include <cassert>#include <vector>#include <fstream>#include <stdexcept>#include <iomanip>#include <sstream>Include dependency graph for coef-merge.cpp:

Go to the source code of this file.
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 |
|
|
Definition at line 11 of file coef-merge.cpp. Referenced by modulus_info_with_table::coefficients(), modulus_info::coefficients(), modulus_info_with_table::length(), modulus_info::length(), main(), modulus_info::modulus_info(), read_bytes(), and write_indices(). |
|
|
||||||||||||||||||||
|
Definition at line 154 of file coef-merge.cpp. References ulong. Referenced by ChineseBox::ChineseBox(). |
|
||||||||||||
|
Definition at line 487 of file coef-merge.cpp. References file_pos, ChineseBox::get_gcd(), ChineseBox::get_lcm(), test(), ulong, verbose, write_coefficients(), and write_indices(). |
|
||||||||||||
|
Definition at line 234 of file coef-merge.cpp. References file_pos, and read_bytes(). |
|
||||||||||||||||
|
Definition at line 247 of file coef-merge.cpp. References read_bytes(), and ulong. Referenced by modulus_info_with_table::modulus_info_with_table(). |
|
||||||||||||
|
Definition at line 449 of file coef-merge.cpp. References atlas::arithmetic::remainder(), and ulong. Referenced by main(), atlas::bitset::BitSetBase< 2 >::operator[](), atlas::bitvector::BitMatrix< dim >::row(), atlas::bitset::BitSetBase< 1 >::slice(), and atlas::bitset::BitSet< numFlags >::test(). |
|
||||||||||||||||
|
Definition at line 241 of file coef-merge.cpp. Referenced by write_coefficients(), and write_indices(). |
|
||||||||||||||||||||||||||||
|
Definition at line 392 of file coef-merge.cpp. References ulong, verbose, and write_bytes(). Referenced by main(). |
|
||||||||||||||||||||||||
|
Definition at line 350 of file coef-merge.cpp. References file_pos, ulong, verbose, and write_bytes(). Referenced by main(). |
|
|
Initial value:
std::ios_base::in
| std::ios_base::binary
Definition at line 150 of file coef-merge.cpp. Referenced by main(). |
|
|
Initial value:
std::ios_base::out
| std::ios_base::trunc
| std::ios_base::binary
Definition at line 145 of file coef-merge.cpp. |
1.3.9.1