30 #include <tests/myratest.h> 34 ADD_TEST(
"lu2_constructors",
"[multifrontal][parallel]")
36 typedef double Number;
37 typedef double Precision;
46 typedef ::multifrontal::Options Options;
47 Options options = Options::create().set_blocksize(16).set_globsize(4).set_nthreads(1);
50 Solver solver1(A,options);
51 Solver solver2(A,perm,options);
52 Solver solver3(A,solver1.tree(),options);
59 solver1.refine(x1.column());
60 solver2.refine(x2.column());
61 solver3.refine(x3.column());
63 Precision error1 = euclidean(A*x1-b);
64 Precision error2 = euclidean(A*x2-b);
65 Precision error3 = euclidean(A*x3-b);
66 myra::out() <<
"|A*x1-b| = " << error1 << std::endl;
67 myra::out() <<
"|A*x2-b| = " << error2 << std::endl;
68 myra::out() <<
"|A*x3-b| = " << error3 << std::endl;
Routines for computing euclidean norm of a Vector/VectorRange, or normalizing a Vector/VectorRange to...
Represents a Permutation matrix, used to reorder rows/columns/etc of various numeric containers...
Definition: Permutation.h:34
Interface class for representing subranges of dense Vector's.
static SparseMatrix< Number > random(int I, int J, int N)
Generates a random SparseMatrix with size IxJ and (approximately) N nonzeros.
Definition: SparseMatrix.cpp:493
General purpose compressed-sparse-column (CSC) container.
static Vector< Number > random(int N)
Generates a random Vector of specified size.
Definition: Vector.cpp:276
Various utility functions/classes related to scalar Number types.
Signatures for sparse matrix * dense vector multiplies. All delegate to gemm() under the hood...
Sparse direct solver suitable for symmetric-pattern nonsymmetric-value A.
Range/Iterator types associated with Pattern.
Container for either a column vector or row vector (depends upon the usage context) ...
Sparse direct solver suitable for symmetric-pattern nonsymmetric-valued A.
Definition: SparseLUSolver.h:57
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.
Helper routines for reordering/filling 2D structured grids. Used by many unit tests.
Range/Iterator types associated with SparseMatrix.