Skylark (Sketching Library)  0.1
Typedefs | Functions | Variables
/var/lib/jenkins/jobs/Skylark/workspace/examples/least_squares.cpp File Reference
#include <iostream>
#include <elemental.hpp>
#include <boost/mpi.hpp>
#include <boost/format.hpp>
#include <skylark.hpp>
Include dependency graph for least_squares.cpp:

Go to the source code of this file.

Typedefs

typedef elem::DistMatrix
< double, elem::VC, elem::STAR > 
matrix_type
typedef elem::DistMatrix
< double, elem::VC, elem::STAR > 
rhs_type
typedef elem::DistMatrix
< double, elem::STAR,
elem::STAR > 
sol_type

Functions

template<typename MatrixType , typename RhsType , typename SolType >
void check_solution (const MatrixType &A, const RhsType &b, const SolType &x, const RhsType &r0, double &res, double &resAtr, double &resFac)
int main (int argc, char **argv)

Variables

const int m = 50000
const int n = 500

Typedef Documentation

typedef elem::DistMatrix<double, elem::VC, elem::STAR> matrix_type

Definition at line 20 of file least_squares.cpp.

typedef elem::DistMatrix<double, elem::VC, elem::STAR> rhs_type

Definition at line 21 of file least_squares.cpp.

typedef elem::DistMatrix<double, elem::STAR, elem::STAR> sol_type

Definition at line 22 of file least_squares.cpp.


Function Documentation

template<typename MatrixType , typename RhsType , typename SolType >
void check_solution ( const MatrixType A,
const RhsType &  b,
const SolType &  x,
const RhsType &  r0,
double &  res,
double &  resAtr,
double &  resFac 
)

Definition at line 25 of file least_squares.cpp.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 42 of file least_squares.cpp.

References skylark::nla::ApproximateLeastSquares(), check_solution(), skylark::nla::FastLeastSquares(), m, and n.

Here is the call graph for this function:


Variable Documentation

const int m = 50000
const int n = 500