Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

/home/r0/dav/atlas.dir/atlas3/sources/stand-alone/matrix-merge.cpp File Reference

#include <vector>
#include "../utilities/hashtable.h"
#include <iostream>
#include <stdexcept>
#include "../utilities/bitmap.h"
#include <string>
#include <fstream>
#include <sstream>
#include "../utilities/arithmetic.h"
#include <iomanip>

Include dependency graph for matrix-merge.cpp:

Include dependency graph

Go to the source code of this file.

Classes

class  tuple_entry< n >

Typedefs

typedef std::vector< std::pair<
unsigned int, unsigned int > > 
coord_vector

Functions

unsigned int read_int (std::istream &in)
void write_int (unsigned int n, std::ostream &out)
template<unsigned int n>
void combine_rows (unsigned int y, atlas::hashtable::HashTable< tuple_entry< n >, unsigned int > &hash, std::vector< std::istream * >in, std::ostream &out, std::vector< unsigned int > &lim, coord_vector *first_use)
template<unsigned int n>
void do_work (std::string name_base, std::vector< unsigned int > &modulus, coord_vector *first_use)
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::vector<std::pair<unsigned int,unsigned int> > coord_vector
 

Definition at line 33 of file matrix-merge.cpp.

Referenced by combine_rows(), and do_work().


Function Documentation

template<unsigned int n>
void combine_rows unsigned int  y,
atlas::hashtable::HashTable< tuple_entry< n >, unsigned int > &  hash,
std::vector< std::istream * >  in,
std::ostream &  out,
std::vector< unsigned int > &  lim,
coord_vector first_use
 

Definition at line 69 of file matrix-merge.cpp.

References combine_rows(), coord_vector, read_int(), atlas::bitmap::BitMap::setRange(), atlas::bitmap::BitMap::size(), and write_int().

Referenced by combine_rows().

template<unsigned int n>
void do_work std::string  name_base,
std::vector< unsigned int > &  modulus,
coord_vector first_use
 

Definition at line 123 of file matrix-merge.cpp.

References coord_vector, do_work(), atlas::arithmetic::lcm(), atlas::hashtable::HashTable< Entry, Number >::match(), atlas::hashtable::HashTable< Entry, Number >::size(), ulong, and write_int().

Referenced by do_work().

int main int  argc,
char **  argv
 

Definition at line 215 of file matrix-merge.cpp.

unsigned int read_int std::istream &  in  ) 
 

Definition at line 52 of file matrix-merge.cpp.

Referenced by combine_rows().

void write_int unsigned int  n,
std::ostream &  out
 

Definition at line 60 of file matrix-merge.cpp.

Referenced by combine_rows(), do_work(), and main().


Variable Documentation

const std::ios_base::openmode binary_in
 

Initial value:

                            std::ios_base::in
                          | std::ios_base::binary

Definition at line 40 of file matrix-merge.cpp.

const std::ios_base::openmode binary_out
 

Initial value:

                            std::ios_base::out
                          | std::ios_base::trunc
                          | std::ios_base::binary

Definition at line 35 of file matrix-merge.cpp.


Generated on Wed Mar 26 16:50:52 2008 for atlas by  doxygen 1.3.9.1