Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

/home/saunders/linbox/examples/dot-product.C File Reference


Detailed Description

Timings on dot products of random vectors.

Author:
Bradford Hovinen <hovinen@cis.udel.edu>
Use of vectors meeting the LinBox dense and sparse vector archetypes is illustrated and their dot-product times are benchmarked.

Constructs random vectors and computes their dot product, giving the required time.

#include "linbox-config.h"
#include <iostream>
#include <fstream>
#include <vector>
#include "linbox/field/modular.h"
#include "linbox/vector/vector-domain.h"
#include "linbox/vector/stream.h"
#include "linbox/util/commentator.h"

Typedefs

typedef Modular< uint32Field

Functions

int main (int argc, char **argv)
 no command line args


Variables

const int n = 10000000
const double p = .001
const int q = 32749


Typedef Documentation

typedef Modular<uint32> Field
 


Function Documentation

int main int  argc,
char **  argv
 

no command line args


Variable Documentation

const int n = 10000000
 

const double p = .001
 

const int q = 32749
 


Generated on Fri Jul 8 10:29:42 2005 for linbox by doxygen 1.3.7