Source: tests/multifrontal/symbolic/rcm.cpp
23 #include <tests/myratest.h> 36 for (
auto aij = A.
begin(); aij != A.end(); ++aij)
37 bw = std::max(bw, std::abs(aij.i()-aij.j()) );
43 ADD_TEST(
"rcm",
"[symbolic]")
48 int bandwidth_A = bandwidth(A);
49 int bandwidth_B = bandwidth(B);
50 myra::out() <<
"bandwidth(A) = " << bandwidth_A << std::endl;
51 myra::out() <<
"bandwidth(B) = " << bandwidth_B << std::endl;
52 REQUIRE(bandwidth_B < bandwidth_A);
Represents a Permutation matrix, used to reorder rows/columns/etc of various numeric containers...
Definition: Permutation.h:34
Range/Iterator types associated with Pattern.
Given a SparseMatrix A and permutations P and Q, returns P'*A*Q.
PatternIterator begin() const
Returns iterators over all of A(:,:)
Definition: Pattern.cpp:163
Holds the nonzero pattern of a sparse matrix.
Definition: Pattern.h:55
Container class for a sparse nonzero pattern, used in reordering/symbolic analysis.
Aggregates a (perm, iperm, swaps) triple into a vocabulary type.
Reverse Cuthill-Mckee ordering, tries to minimize bandwidth.
Helper routines for reordering/filling 2D structured grids. Used by many unit tests.
Interface class for representing subranges of contiguous int's.
Results: [PASS]
bandwidth(A) = 100
bandwidth(B) = 11
Go back to Summary of /test programs.