MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <vector>
#include <algorithm>
#include <cassert>
#include <functional>
#include <iostream>
#include <iomanip>
#include "/usr/include/gsl/gsl_linalg.h"
#include "../basecode/SparseMatrix.h"
Go to the source code of this file.
Classes | |
class | FastElim |
class | Unroll |
Functions | |
void | advance (vector< double > &y, const vector< Triplet< double > > &ops, const vector< double > &diagVal) |
double | checkAns (const double *m, unsigned int numCompts, const double *ans, const double *rhs) |
main () | |
void | sortByColumn (vector< unsigned int > &col, vector< double > &entry) |
void | testSorting () |
Variables | |
const unsigned int | SM_MAX_COLUMNS = 200000 |
const unsigned int | SM_MAX_ROWS = 200000 |
const unsigned int | SM_RESERVE = 8 |
void advance | ( | vector< double > & | y, |
const vector< Triplet< double > > & | ops, | ||
const vector< double > & | diagVal | ||
) |
Definition at line 402 of file standaloneTestFastElim.cpp.
Referenced by main(), Gsolve::process(), and Ksolve::process().
double checkAns | ( | const double * | m, |
unsigned int | numCompts, | ||
const double * | ans, | ||
const double * | rhs | ||
) |
Definition at line 417 of file standaloneTestFastElim.cpp.
Referenced by main().
main | ( | ) |
Definition at line 434 of file standaloneTestFastElim.cpp.
References advance(), FastElim::buildBackwardSub(), FastElim::buildForwardElim(), checkAns(), SparseMatrix< T >::get(), FastElim::hinesReorder(), FastElim::makeTestMatrix(), and SparseMatrix< T >::print().
void sortByColumn | ( | vector< unsigned int > & | col, |
vector< double > & | entry | ||
) |
Definition at line 162 of file standaloneTestFastElim.cpp.
Referenced by FastElim::shuffleRows(), and testSorting().
void testSorting | ( | ) |
Definition at line 641 of file standaloneTestFastElim.cpp.
References sortByColumn().
const unsigned int SM_MAX_COLUMNS = 200000 |
Definition at line 17 of file standaloneTestFastElim.cpp.
Referenced by SparseMatrix< unsigned int >::setSize().
const unsigned int SM_MAX_ROWS = 200000 |
Template for specialized SparseMatrix. Used both for the Kinetic solver and for handling certain kinds of messages. Speciality is that it can extract entire rows efficiently, for marching through a specified row for a matrix multiplication or for traversing messages.
Requires that type T have an equality operator ==
Definition at line 16 of file standaloneTestFastElim.cpp.
Referenced by SparseMatrix< unsigned int >::setSize().
const unsigned int SM_RESERVE = 8 |
Definition at line 18 of file standaloneTestFastElim.cpp.
Referenced by SparseMatrix< unsigned int >::SparseMatrix().